首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >选择表中的第一个列表- CSS first-child?

选择表中的第一个列表- CSS first-child?
EN

Stack Overflow用户
提问于 2010-02-04 11:26:39
回答 2查看 56.8K关注 0票数 17

也许我找错人了。我有一个有6列的表,每列都有一个有序列表。我希望它们都有一个边框,除了第一个列表。

The site is in development here基本上是这样的

<tr>
 <td>
   <ol>
    <li>hello</li>
   </ol>
 </td>
 <td>
   <ol>
    <li>hello</li>
   </ol>
 </td>
 <td>
   <ol>
    <li>hello</li>
   </ol>
 </td>
</tr>

我以为tr的第一个孩子会像tr:first-child ol {style}一样工作

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2197133

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档