CSS为什么不工作?

时间:2011-02-22 11:53:03

标签: css

它没有显示正确的边框

<th style="border-style:solid; border-right:1px; border-left:0px; border-bottom:0px; border-top:0px;">s
  </th>

3 个答案:

答案 0 :(得分:1)

你也应该给出border-color。

答案 1 :(得分:1)

试试

<th style="border-right:solid 1px gray"></th>

答案 2 :(得分:0)

在你的css

th.giveaclassname {border:0 1px 0 0 solid black;}
你的HTML中的

<th class="giveaclassname">..</th>

或者可能是边框正在折叠,而较厚的边框占优势(参见this post