html - jquery 移动复选框

标签 html css jquery-mobile

这是我的 jquery 移动复选框 enter image description here

我想改变它的背景颜色。我正在使用这段代码

<fieldset data-role="controlgroup" data-type="vertical" style = "width:200px; padding-    
top:7px;">
<input name="checkbox5" id="checkbox5" type="checkbox"/>
<label for="checkbox5" style = "color:#0A6E9A;" >
My Choice 1
</label>
<input name="checkbox6" id="checkbox6" type="checkbox"/>
<label for="checkbox6" style = "color:#0A6E9A; background-
color:#AFDCEF;" >
My Choice 2
</label>
</fieldset>

最佳答案

通过在“.ui-checkbox .ui-btn-inner”中添加您的样式“color:#0A6E9A; background-color:#AFDCEF;”来更改背景颜色”在您的“jquery.mobile-1.0.1.css”文件中。 查看代码的输出: http://jsfiddle.net/sV3D2/

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

相关文章:

html - 我如何正确对齐图像?

html - MDL 卡未与父卡对齐

javascript - 如何删除flot中的y轴刻度

javascript - Jquery Mobile 切换页面后的调用功能

php - 同步离线 JQuery Mobile 表单

html - 使 flex-box 中 child 的高度相同

html - 使用 Bootstrap 设计注册页面

html - 表格单元格宽度问题

html - 缩小和清除 HTML/CSS/JS

javascript - 如何知道插入符号位置是否在文本框中的 {} 字符之间?