Is there any Fix for child selector in IE6

后端 未结 4 1630
[愿得一人]
[愿得一人] 2021-01-19 15:18

While using :first-child :last-child , in css its works fine in IE7, FF.

Is there any possible fix for this.

Use of Javascript is fine. If it works without j

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-19 16:21

    You can use a semantic class name to ease your suffering in IE6. Something like:

      
    • First Item
    • Second Item
    • Last Item

    And then in your CSS use:

    ul .first { color: #F00; }
    ul .last { color: #00F; }
    

提交回复
热议问题