【发布时间】:2018-04-24 16:51:03
【问题描述】:
选中其他颜色时,如何将复选框颜色(蓝色)和复选框图标颜色(白色)更改为其他颜色。
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<form>
<label>
<input type="checkbox" name="checkbox-0 ">Check me
</label>
</form>
【问题讨论】:
-
虽然改变背景颜色是微不足道的 CSS,但对于图标颜色,您有两种颜色集:white 和 black。您可以通过应用
ui-alt-icon类来显示黑色 图标。您无法为图标着色,因为图标图像未内联。这是备用图标集的参考:demos.jquerymobile.com/1.4.5/icons
标签: jquery css jquery-mobile