css 选择器选择所有同级标签编译报错,是不支持~吗?

发布于 7 年前作者 laixiulan13870 次浏览最后编辑 7 年前来自 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 回复
guiying40
guiying401 楼5 年前

当然了,文档都不看吗?