chekcbox 与文字对齐
html 如下
<div>
<input type="checkbox"> <span>测试</span>
</div>
css 如下
input {
vertical-align: top;
margin-top: 4px;
}
span {
display: inline-block;
margin-top: 2px;
}
- 测试浏览器:Chrome, IE 11/10
- 测试系统:OS X 和 Windows 8.1
html 如下
<div>
<input type="checkbox"> <span>测试</span>
</div>
css 如下
input {
vertical-align: top;
margin-top: 4px;
}
span {
display: inline-block;
margin-top: 2px;
}