Unwanted row space in TABLE

和自甴很熟 提交于 2020-01-06 06:52:34

问题


I have a table which contains a segmented picture. Picture is segmented due to adding mouse over effect on some parts of picture.

Although the stand-alone version is OK, when integrated to WordPress as a side bar HTML code, becomes messy (cell-padding changes). Since I have no control over the parent control (here a DIV) how can I override parent CSS from my HTML code (without changing WordPress side-bar PHP code).


回答1:


There is a line-height: 21px; in your stylesheet. Remove that it looks good.




回答2:


You can use default css style such as

    table {
      margin-left:auto;
      .....
}
    td {
      margin-left:auto;
      .....  
}
    tr {
      margin-left:auto;
      .....
}     


来源:https://stackoverflow.com/questions/12786090/unwanted-row-space-in-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!