【发布时间】:2015-12-01 04:46:32
【问题描述】:
我想用显示在复选框顶部的样式 div 直观地替换默认复选框元素。我不想使用图片。
选中时:
<div style="width: 18px; height: 18px; background: #0e0; border-radius: 3px; border: 2px solid #555; color: #fff;">✓</div>
未选中时:
<div style="width: 18px; height: 18px; background: #ccc; border-radius: 3px; border: 2px solid #555; color: #fff;"></div>
可以吗?
谢谢!
【问题讨论】:
-
你可以使用隐藏的复选框吗?