.pic img:first-of-type{display: block;} .pic img:target{display: block;} 转载于:https://www.cnblogs.com/Dyla/p/9929163.html