在CSS中,有几个这样的声明:
@-moz-document url-prefix() {
.fl { float:left; margin:12px 4px 0 0; padding:0; font-size:65px; line-height:62%; color:#ba1820; }
.fs { float:left; margin:12px 4px 10px 0; padding:0; font-size:65px; line-height:62%; color:#ba1820; }
}
这实际上是做什么的?我搜索了@ -moz-document url-prefix(),并找到了它在userchrome中使用的参考,但找不到标准的站点样式表。
发布于 2018-04-27 13:20:55
以规则开头的任何CSS规则@-moz-
都是Gecko引擎特定的规则,而不是标准规则。也就是说,这是一个Mozilla特定的扩展。
发布于 2018-04-27 14:45:32
@-moz-document url(http://www.w3.org/),
url-prefix(http://www.w3.org/Style/),
domain(mozilla.org)
{
/* CSS rules here apply to:
+ The page "http://www.w3.org/".
+ Any page whose URL begins with "http://www.w3.org/Style/"
+ Any page whose URL's host is "mozilla.org" or ends with
".mozilla.org"
*/
/* make the above-mentioned pages really ugly */
body { color: purple; background: yellow; }
}
https://stackoverflow.com/questions/-100008284
复制相似问题