2013-11-02 23 views

回答

4

使用下面的代碼:

table tr td:first-child 
{ 
    // Enter your CSS Here 
} 

如果您向我們提供一些HTML,那麼可能我們可以爲您提供更具體的答案。現在,我希望這有助於

0

嘗試添加COLGROUP到表

Codepen Demo

<table> 
    <colgroup> 
    <col> 
    <col> 
    <col> 
    </colgroup> 

etc... 

然後

col:nth-child(1) { 
    background:red; 
} 
相關問題