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;
}
精彩评论