css 选择器选择所有同级标签编译报错,是不支持~吗?
发布于 6 年前 作者 laixiulan 13700 次浏览 来自 官方Issues
.content_img:first-child:nth-last-child(2),
	.content_img:first-child:nth-last-child(2) ~.content_img{
		width: 150px!important;
		height: 150px!important;
	};
	
	.content_img:first-child:nth-last-child(n+3),
	.content_img:first-child:nth-last-child(n+3) ~.content_img{
		width: 100px!important;
		height: 100px!important;
	};

上面css选择器 ~ 选择所有同级的元素报错

1 回复

当然了,文档都不看吗?

回到顶部