铬的奇怪风格

时间:2014-12-19 11:27:15

标签: html css google-chrome

我在chrome v.39.0.2171.95m中发现了一些奇怪的内置样式:

::content div[id^="cpa_rotator_block"], ::content div[id^="rtn4p"], ::content div[id^="sblock_inform_"], ::content img[width="120"][height="600"], ::content img[width="160"][height="600"], ::content img[width="468"][height="60"], ::content img[width="728"][height="90"], ::content noindex > .search_result[class*="search_result_"], ::content .a-buttons.blue-but.a-check, ::content .a-buttons.green-but.a-clock, ::content div[style="width: 252px; height: 450px; position: fixed; right: 0px; top: 0px; overflow: hidden; z-index: 10000;"], ::content #pgeldiz, ::content .rbcobmen, ::content #banner.b-banner__content, ::content .b-spec-adv, ::content .serp-adv, ::content .spec-adv, ::content .stat_pixel_yes[onclick][class*="_layout_"][class*="_format_"], ::content .min-width-normal > #popup_container, ::content .min-width-normal > #popup_container ~ #fade {

display: none;

}

有人知道它们的用途是什么吗?我无法改变它,因为chrome返回了样式和规则,并且它甚至没有display: block !important

的中断

P.S。这是AdBlock。

1 个答案:

答案 0 :(得分:2)

它在正则表达式中最常用于指定字符串的开头

如果我们想要定位所有具有以http开头的href的锚标签,我们可以使用类似于下面所示的片段的选择器。

a[href^="http"] {
   background: url(path/to/external/icon.png) no-repeat;
   padding-left: 10px;
}

Useful Link - 见第13号