Hide image of specific size, by CSS?

前端 未结 4 1961
梦如初夏
梦如初夏 2021-01-19 23:49

Thanks in advance for your help!

I have an RSS, I want to post the content of this RSS on my page, but the RSS is from WordPress and it contains an image of a button

4条回答
  •  感动是毒
    2021-01-20 00:11

    the comment button URL is sequential, so even if I could hide "wordpress.com/commentbutton/12", the next button url is "wordpress.com/commentbutton/13" and so on :(

    CSS can actually help out here. The attribute selector can select attributes which contain a value. So, this:

    img[src*="feeds.wordpress.com/1.0/comments"] {display: none;}
    

    should do it.

提交回复
热议问题