【问题标题】:How Do i Prevent CSS Styles from Affecting All Sites我如何防止 CSS 样式影响所有站点
【发布时间】:2016-02-24 05:48:02
【问题描述】:

在将 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”。我这样说是因为我使用其他样式,只有规则中的“一个”字,它们在不影响其他网站的情况下工作。

【问题讨论】:

    标签: css firefox styles stylish


    【解决方案1】:

    看来您还必须指定域

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-11-09
      • 2017-04-03
      • 1970-01-01
      • 2018-07-23
      • 1970-01-01
      • 2014-11-04
      • 2014-10-03
      相关资源
      最近更新 更多