Omu*_*Omu 5 html css jquery select google-chrome
此 html 仅在 chrome 中使所选值不可见,在其他浏览器中选择的背景是彩色的,只有在 chrome 中它是白色的
<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>
Run Code Online (Sandbox Code Playgroud)
有人知道修复吗?
Hus*_*ein -5
使用 jQuery 你可以做到这一点
$('#selectbox').css({
'background': 'blue'
});
Run Code Online (Sandbox Code Playgroud)