在选择框的白色背景在Chrome时观看 [英] White background in select box when viewing in Chrome
本文介绍了在选择框的白色背景在Chrome时观看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此html仅在chrome中使选定的值不可见,其他浏览器中的选择的颜色为彩色,仅在chrome中为白色。
this html only in chrome makes the selected value non visible, the bacground of the select in other browsers is colored, only in chrome it's white
<HTML>
<head>
<title>
title
</title>
<link id="siteThemeLink" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/themes/excite-bike/jquery-ui.css"
rel="stylesheet" type="text/css" />
</head>
<body>
<select class='ui-state-error'>
<option>hi</option>
<option>hi</option>
<option>hi</option>
</select>
</body>
</HTML>
任何人都知道修复?
推荐答案
使用jQuery可以做到这一点
With jQuery you can do this
$('#selectbox').css({
'background': 'blue'
});
这篇关于在选择框的白色背景在Chrome时观看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文