我每个里面都有混杂的内容
框,我需要的是 Select 所有的图像,除了它找到的第一个.我用不同的方法试过了,但我不能得到它,你能帮我吗?下面是我留下的代码
<style>
img{ width:50px; height:50px; }
/* apply border to all but first image */
/*p:not(p:first-of-type) > img{
border:2px solid red
}*/
/*p > :not(:first-of-type > img) {
border:2px solid red
}*/
/*p:not(p > img:nth-of-type(1)){
border:1px solid red
}*/
/*img:not(:nth-of-type(1)) {
border:1px solid red;
}*/
/* *:not(img:first-of-type){
border: 1px solid red;
}*/
/* *:not(img:first-of-type) > img {
border: 1px solid red;
}*/
/* :not(*:first-of-type) img{
border: 1px solid red;
}*/
*:not(:first-of-type > img) > img {
border: 1px solid red;
}
</style>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p><img src="https://static.jsbin.com/images/dave.min.svg"></p>
<p>hello</p>
<p>hello</p>
<p>hello</p>
<p><img src="https://static.jsbin.com/images/dave.min.svg"></p>
<p>hello</p>
<p><img src="https://static.jsbin.com/images/dave.min.svg"></p>
<p>hello</p>
<p><img src="https://static.jsbin.com/images/dave.min.svg"></p>
<p>hello</p>
<p><img src="https://static.jsbin.com/images/dave.min.svg"></p>
<p>hello</p>
<p><img src="https://static.jsbin.com/images/dave.min.svg"></p>
<p>hello</p>
<p><img src="https://static.jsbin.com/images/dave.min.svg"></p>