Firefox的html select选项的覆盖样式 [英] Firefox overriding style of html select option

查看:66
本文介绍了Firefox的html select选项的覆盖样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,这已经让我很烦了一段时间,我无法弄清楚是什么原因造成的.我想知道是否还有其他人遇到这个问题或注意到这一点.

在我的CSS中,我的html select选项的样式看起来与此类似

在某些计算机上,它看起来像我的样式,在某些计算机上,看起来有些东西覆盖了样式,然后看起来像这样

到目前为止,有一些事实可以帮助确定是什么原因造成的.我测试过的所有计算机都运行Windows 7.我安装了许多程序的主计算机没有这个问题.我的笔记本电脑有此问题.我的小型PC干净安装且程序很少,因此出现了此问题,也没有安装任何Adobe产品.在有问题的PC上,如果我在firefox中进行刷新,则该问题将修复约5-10分钟,然后再出现.

如果这是CSS问题,为什么刷新的firefox会暂时修复,然后又回来呢?

这使我认为刷新后会获取某些后台插件或设置.

这可能是Windows上的其他应用程序导致的吗?

有人可以告诉我他们是否可以重现此问题,以及如何解决此问题以及造成此问题的原因吗?

这是我的CSS

  SELECT {颜色:#555558;font-size:16px;边距:0px 0px 8px 12px;填充:2px 0px 2px 5px;宽度:203px;} 

html

 < select>< option>-选择页面-</option>< option>首页</option>< option>关于我们</option>< option>野营提示</option></select> 

我几个月前就此问题发布了消息,但是现在该问题与firefox或CSS版本无关,因此提供的答案有误.

解决方案

好,因此解决方案是 disable-> Multiprocess Windows

在浏览器中输入 about:config

然后搜索 browser.tabs.remote.autostart (我有一个browser.tabs.remote.autostart.2)

将此更改为 FALSE ,然后重新启动浏览器这将使firefox在禁用多进程Windows的情况下运行,从而解决了该问题

Ok, so this has been annoying me now for some time and I can not figure out what is causing this. I am wondering if anyone else is having this issue or noticed this.

In my css I have the html select options styled to look similar to this

On some computers it looks like how I've styled it and on some it appears something is overriding the style and then it looks like this

Some facts so far to help determine what is causing this. All the computers I've tested are running windows 7. My main pc that has numerous programs installed doe not have this issue. My laptop has this issue. My small pc that has a clean install with very few programs has this issue, also does not have any adobe products installed. On the PC's with the issue, if I do a refresh in firefox the issue is fixed for about 5-10 min and then comes back.

If this were a CSS issue why would refreshing firefox temporarily fix and then later come back?

This leads me to think that some background plugin or setting is getting fetched after a refresh.

Could this be some other application on windows causing this?

Can someone tell me if they can reproduce this issue and also how to fix this and what is causing it?

Here is my CSS

SELECT {
    color: #555558;
    font-size: 16px;
    margin: 0px 0px 8px 12px;
    padding: 2px 0px 2px 5px;
    width: 203px;
}

html

<select>
<option> - Select a Page - </option>
<option>Home Page</option>
<option>About Us</option>
<option>Camping Tips</option>
</select>

I posted several months ago regarding this issue however now the issue is not related to the version of firefox or CSS so the answers provided are misguided. Did Firefox 48 remove ability to style the select element?

Here is a list of plugins, as stated above, default installation produces this issue.

解决方案

Ok, so the solution here is to disable -> Multiprocess Windows

type about:config in the browser

then search for browser.tabs.remote.autostart (mine had a browser.tabs.remote.autostart.2)

change this to FALSE then restart the browser this will make firefox run Multiprocess Windows disabled which fixes the issue

这篇关于Firefox的html select选项的覆盖样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆