-1

将 CSS 样式应用于网站时,我遇到了 Firefox 浏览器的问题。我也使用样式表。低于 PlayStore 和 Craigslist 的规则。他们在预期的网站上工作,但他们也在全球范围内工作,影响我访问的所有网站。如何在不影响其他站点的情况下将它们限制在 PlayStore 和 Craigslist 中?

@-moz-document url-prefix(" https://play.google.com/store "){

@-moz-document url-prefix(" http://newyork.craigslist.org "), domain(craigslist.org){

在我看来,规则中用句点分隔的每个网址中的 2 个单词可能是问题所在,例如“play.store”和 newyork.craigslist”。我这样说是因为我使用其他样式,只有“一个”规则中的单词,它们可以在不影响其他站点的情况下工作。

4

1 回答 1

0

看起来您还必须指定域

@-moz-document domain('images.example.com'), url-prefix('http://example.com/images') {

https://github.com/JasonBarnabe/stylish/wiki/Applying-styles-to-specific-sites

于 2016-02-24T06:03:34.380 回答