[英]css style is overruled bij chromes user agent style sheet
My problem is as subscribed in the title. 我的问题是标题中所订阅的。 The part of css that is currently being overruled is this: 当前被否决的css部分是这样的:
.domain, .incident, .chzn-container-single .chzn-single {
font-family: sans-serif}
.domain {font-weight: bold}
In firefox is show correctly but sadly in chrome it doesn't. 在firefox中可以正确显示,但在chrome中则不能显示。 Really hope someone could help me find a way to override this. 真的希望有人可以帮助我找到一种方法来克服这一点。
Chrome does not allow to style the font-weight for the option element (cf. your debug screen shot) Firefox does allow it. Chrome不允许为option元素设置字体粗细(请参见调试屏幕截图),Firefox允许这样做。
http://fiddle.jshell.net/cN5A4/1/ http://fiddle.jshell.net/cN5A4/1/
option {font-weight: bold;}
If you want to have the same styling you would need to resort to JS. 如果要具有相同的样式,则需要使用JS。 For example https://github.com/fnagel/jquery-ui which turns the select into a list with links which you could than style as bold links... 例如https://github.com/fnagel/jquery-ui ,它将选择内容转换为包含链接的列表,您可以将其设置为粗体链接...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.