javascript - 如何在 jquery mobile 中为复选框设置边框

标签 javascript html css jquery-mobile checkbox

我想在 jquery mobile 中为我的复选框添加边框。我尝试使用 css 的 border 属性和 outline 属性进行样式设置。

<input type="checkbox" name="checkbox-0" style="outline: 3px solid #1e5180;"/>
<input type="checkbox" name="checkbox-1" style="border: 3px solid #1e5180;"/>

但对我没有用。有人可以提供解决方案吗?

最佳答案

使用 jquery-mobile 复选框:

http://jquerymobile.com/demos/1.0a4.1/docs/forms/forms-checkboxes.html

您可以通过定位 .ui-btn-up-c 来自定义样式

.ui-btn-up-c {
   border: 1px solid #999999;
}

或者在这里建立你自己的主题:

http://jquerymobile.com/themeroller/

关于javascript - 如何在 jquery mobile 中为复选框设置边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14840429/

相关文章:

javascript - 如何有效地检查变量是数组还是对象(在 NodeJS 和 V8 中)?

html - 在 Material Design Lite 中使用工具提示替代 ID 选择器

javascript - <div> 在水平调整窗口大小时向上移动

javascript - JSF 标签禁用注销按钮的 css 首选项

javascript - 滚动到 anchor 时是否可以运行 jQuery 代码?

javascript - 如何在选择 HTML 控件的 onchange 事件中调用 jQuery Colorbox 弹出窗口?

javascript - 递归集合在 sproutcore2 中是否可行?

javascript - 如何确保我的异步函数在调用下一个函数之前先执行

jquery - 在隐藏的 div 中显示一个 div

html - 为什么 div 不能很好地居中?