问题
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