How to stop adblock plus blocking images in HTML page

前端 未结 4 1253
一整个雨季
一整个雨季 2020-12-05 09:50

I am building a simple HTML page with some images, my FireFox has Adblock Plus—recently installed— and it blocks these images. I look at other similar pages on the net and t

4条回答
  •  情话喂你
    2020-12-05 10:18

    I had a very similar issue, I had some banners to display on an eCommerce site, put them im a folder called banners/size. After the page rendered, the banners would disappear in Chrome. I thought something was going crazy in JavaScript somewhere, I tried in Firefox and everything worked. Only difference, no AdBlock enabled in Firefox!

    Inspecting the image statements, it had appended this to every image in the banners folder:

    style="display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: 1px 1px; width="0" height="0"
    

    I renamed the banners folder to img_bnr, sorted!

提交回复
热议问题