0

此代码在所有浏览器中都可以正常工作,但在 Internet Explorer 和旧版浏览器中不起作用。对于旧浏览器和 Internet Explorer,也可以使用 jquery 来实现吗?

.post {position:relative;float:left;width:207px;height:300px;margin-right:24px}
.post:nth-child(4n) {margin-right:0px !important;}
4

1 回答 1

1

你可以。在 jQuery 中,尝试

$(".post:nth-child(4n)").css('margin-right', '0px !important');
于 2013-10-09T22:00:37.643 回答