jquery - 复选框的 CSS 边框

标签 jquery css mozilla

我正在为 jQuery 的复选框应用样式

$("#reg_checkbox").css("border","thin solid red");

边框在 IE 中工作正常但在 mozilla 中不工作,我怎样才能使它与浏览器兼容?

最佳答案

使用大纲: http://jsfiddle.net/Kqcx7/1/

$('#reg_checkbox').css('outline-color', 'red');
$('#reg_checkbox').css('outline-style', 'solid');
$('#reg_checkbox').css('outline-width', 'thin');

关于jquery - 复选框的 CSS 边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4600790/

相关文章:

javascript - 选择后如何隐藏optgroup数据不显示

html - IE7 中等效的 CSS 是什么?

jquery - 控制加/减只影响当前窗口

jquery - 2 col-md-6 没有在我的剑道网格中并排排列。

c# - 如何使用 CSS 包含隐藏的 DIV 而不会占用空间?

javascript - Mozilla 和 Chrome 之间的 URL 编码差异

html - 无法让原始选择下拉箭头在 Mozilla 中消失

javascript - javascript中同名函数内的函数

javascript - 有没有办法在不使用 <script> 标签的情况下使用 javascript 代码?

javascript - 通过 id 获取选项值适用于 chrome 而不是 mozilla