Css 适用于所有网站,但不适用于浏览器

Css 适用于所有网站,但不适用于浏览器,css,firefox,stylish,firefox-nightly,Css,Firefox,Stylish,Firefox Nightly,我想将一个时髦的主题应用于所有inpux框、文本区和选择框,因此我写道: @namespace url(http://www.w3.org/1999/xhtml); textarea, input, select { background-color: white !important; color: black !important; } 我的理解是,这只适用于网页,但也会影响URL栏,使其变为白色。有没有办法让它不影响URL栏 我每晚都在使用Firefox(43版) 更新 如果你想

我想将一个时髦的主题应用于所有inpux框、文本区和选择框,因此我写道:

@namespace url(http://www.w3.org/1999/xhtml);
textarea, input, select {
  background-color: white !important;
  color: black !important;
}
我的理解是,这只适用于网页,但也会影响URL栏,使其变为白色。有没有办法让它不影响URL栏

我每晚都在使用Firefox(43版)

更新 如果你想让GTK3 Firefox看起来有一个黑色的主题,最终的解决方案是一个时髦的配置,其中包括:

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix('http://'), url-prefix('https://') {
  textarea, input, select {
    background-color: white !important;
    color: black !important;
  }
}

工作起来很有魅力。

Firefox的chrome混合使用XUL和HTML,因此声明默认CSS名称空间也会影响浏览器chrome中的HTML元素。您可以将样式包装在
@-moz文档中
块限制目标内容的来源,如:

@-moz-document url-prefix('http://'), url-prefix('https://') { /* your code here */}