【问题标题】:Does ie support first-child and last-child?ie 是否支持第一个孩子和最后一个孩子?
【发布时间】:2012-10-25 16:31:25
【问题描述】:

有人知道first-childlast-child 支持像IE6 和IE7 这样的旧IE。

我认为使用 jQuery 时它可以工作,对吗?

只有 CSS 有问题吗?

【问题讨论】:

    标签: internet-explorer internet-explorer-8 internet-explorer-7 internet-explorer-9 internet-explorer-6


    【解决方案1】:

    来自http://www.quirksmode.org/css/contents.html

    first-child: IE6: 否。 IE7/8: 是的,但有一些警告。 IE9+:是的。

    last-child:IE6/7/8:否。IE9+:是。

    jQuery 在任何地方都支持它们。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-03-12
      • 2012-02-09
      • 2022-11-10
      • 1970-01-01
      • 1970-01-01
      • 2013-06-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多