...
|
...
|
@@ -39,9 +39,55 @@ iconfont 新建项目,使用 class 控制图标样式,不要用 unicode<br> |
|
|
<button class="button button-large button-round button-solid">大,圆角,实心</button>
|
|
|
|
|
|
<h2>badge</h2>
|
|
|
<a style="position:relative"><i class="icon icon-bag"></i><span class="badge badge-tr">1</span></a>
|
|
|
<a style="position:relative"><i class="icon icon-bag"></i><span class="badge">99</span></a>
|
|
|
<br>
|
|
|
一个数字的时候是圆形,数字长的时候圆角长方形,类似跑道
|
|
|
|
|
|
<h2>checkbox</h2>
|
|
|
|
|
|
<div class="checkbox">
|
|
|
<input type="checkbox" id="check1">
|
|
|
<label class="checkbox" for="check1">初始状态</label>
|
|
|
</div>
|
|
|
<div class="checkbox">
|
|
|
<input type="checkbox" id="check2" checked>
|
|
|
<label class="checkbox" for="check2">选中状态</label>
|
|
|
</div>
|
|
|
<div class="checkbox">
|
|
|
<input type="checkbox" id="check3" disabled>
|
|
|
<label class="checkbox" for="check3">disabled状态</label>
|
|
|
</div>
|
|
|
<div class="checkbox">
|
|
|
<input type="checkbox" id="check4" disabled checked>
|
|
|
<label class="checkbox" for="check4">disabled选中状态</label>
|
|
|
</div>
|
|
|
<br>
|
|
|
<div class="radio">
|
|
|
<input type="radio" id="radio1">
|
|
|
<label for="radio1">初始状态</label>
|
|
|
</div>
|
|
|
<div class="radio">
|
|
|
<input type="radio" id="radio2" checked>
|
|
|
<label for="radio2" >选中状态</label>
|
|
|
</div>
|
|
|
<div class="radio">
|
|
|
<input type="radio" id="radio3" disabled>
|
|
|
<label for="radio3">disabled状态</label>
|
|
|
</div>
|
|
|
<div class="radio">
|
|
|
<input type="radio" id="radio4" disabled checked>
|
|
|
<label for="radio4">disabled选中状态</label>
|
|
|
</div>
|
|
|
<br>
|
|
|
<div class="switch">
|
|
|
<input type="checkbox" id="switch1">
|
|
|
<label for="switch1"></label>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
单选,多选,开关,选中不选中。
|
|
|
纯 CSS 实现,不能依赖 JS,原理参考 http://forsigner.com/magic-check/
|
|
|
|
...
|
...
|
|