Quantcast
Channel: MozTW 討論區
Viewing all articles
Browse latest Browse all 7601

請問Adblock plus及Element Hiding Helper for Adblock Plus可否萬用字元

$
0
0
abp的元素隱藏規則本質上是給相關站點插入 user css
給由 css selector 指定的元素設置 display:none!important;
而那個 * 在 css selector 中表示匹配所有元素

可以參考 https://adblockplus.org/en/filters#elemhide 中這段
引言回覆:The first advertisement above is contained inside a div element with class attribute "textad". The following rule will hide exactly this combination: ##div.textad. Here ## marks an element hiding rule while the rest is a selector identifying the elements that need to be hidden. You can hide elements by their id attribute similarly, ##div#sponsorad will hide the second advertisement. You don't need to specify the element name, the rule ##*#sponsorad will work just as well. And you can hide elements by element name only, e.g. ##textad for the third advertisement.


更進一步的請參考 css selector
比如
http://www.w3schools.com/CSSref/css_selectors.asp
https://developer.mozilla.org/docs/Web/Guide/CSS/Getting_started/Selectors

統計資料 : 發表於 由 rubcandy0208 • 發表於 2014-06-11, 11:11 • 回覆 4 • 觀看 592

Viewing all articles
Browse latest Browse all 7601

Trending Articles