【发布时间】:2012-06-11 20:12:05
【问题描述】:
我正在使用此代码
$('.list-item:nth-child(5n)').after('<div class="clear"><img src="http://domain.com/image.jpg" width="780" height="80" alt="banner" /></div>')
这在 Firefox 和 Chrome 中运行良好,但在 IE8、IE9 中无法运行...
【问题讨论】:
-
IE8 不支持AFAIK nth-child。
-
@pixelngrain 请为
.list-item元素发布您的HTML。同时发布您可能在控制台中看到的任何消息。 -
我检查并不能在 IE 中工作。不知道哪里错了
标签: jquery internet-explorer cross-browser