开发者

CSS Table Layout Issue

I'm having a problem with the code below, specifically the line "table.ScanData, th, td" that is setting the borders for all the other tables on my page but NOT ScanData.

table.ScanData
{
 margin-left:5px;
 border-collapse:coll开发者_如何学Capse;
 border: 1px solid black;
}
table.ScanData, th, td
{
    border: 1px solid black;
}
table.ScanData td
{
    padding:3px;
}


try

table.ScanData th, table.ScanData td

instead of

table.ScanData, th, td


Try that: .ScanData table, th, td ....

Example:

http://jsfiddle.net/MbdMW/


Use this.

table.ScanData th, table.ScanData td
{
    border: 1px solid black;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜