如何爲兩個表格單元格創建兩個不同樣式,即一個單元格位於另一個表格內?桌子裏面有不同風格的桌子嗎?
我有兩個CSS樣式:
table.style1 { /* any styles */}
table.style1 td { /* any styles */}
和
table.style2 { /* any styles */}
table.style2 td { /* any styles */ }
在代碼中,我somting這樣的:
<table class="style1">
<tr>
<td>
<table class="style2">
<tr><td>bla bla<td></tr>
</table>
</td>
<tr>
</table>
,結果是 - 所有<td>
表格單元格在第二張桌子(與style2)與style1 ...!
如何製作兩個不同的css豎框,當我在桌子內部放置桌子時?
檢查[這裏](http://css-tricks.com/child-and-兄弟選擇器/) – 2013-03-01 09:09:19
我試過你的代碼,它的工作方式與你的希望一致。也許創建一個小提琴展示你的問題? – 2013-03-01 09:13:38