CSS隐藏所有具有匹配SRC属性的图像 [英] CSS hide all images with matching SRC attribute
本文介绍了CSS隐藏所有具有匹配SRC属性的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以创建一个CSS规则,以将样式应用于带有包含特定字符串(例如"hideme")的SRC的任何IMG标签?例如,如果我在页面上有以下3张图片,它将隐藏第二张图片吗?
Is it possible to create a CSS rule that would apply a style to any IMG tag with a SRC that contained a specific string, say "hideme"? For instance, if I had the following 3 images on a page it would hide the second one?
<img src="images/test1.png">
<img src="images/hideme.gif">
<img src="images/test3.jpg">
推荐答案
查看全文