【发布时间】:2014-12-19 07:56:22
【问题描述】:
我使用引导框架进行了以下标记。
<div class="col-md-4">
<div class="custom-container">
<img class="center-block img-responsive img-circle invite-contact-trybe" src="{$img}" alt="Contact Image">
<input class="invite-contact-checkbox" type="checkbox">
</div>
</div>
我想实现以下目标:
有没有办法使用 CSS 来做到这一点?
我显然需要 3 个状态:
首字母:
.custom-container input[type=checkbox]{}
某种形式的悬停状态:
.custom-container input[type=checkbox]:hover{}
勾选时:
.custom-container input[type=checkbox]:checked{}
谁能提出解决方案?
【问题讨论】:
-
hongkiat.com/blog/css3-checkbox-radio 有相当多的插件、想法等。谷歌为它。 Bootstrap 只是 css 和 js,没有为此内置任何东西。 Bootstrap 人尤其远离原生元素的样式。
标签: html css twitter-bootstrap checkbox customization