文字与单选复选框对齐

<style>
.box3>input {
vertical-align: middle;
margin-top: -2px;
margin-bottom: 1px
}
</style>


<p> vertical-align: middle;margin-top: -2px;margin-bottom: 1px</p>
<p>把此元素放置在父元素的中部</p>
<div class="box3">
<input type="radio">单选
<input type="checkbox" name="" id="">复选
</div>

 

posted @ 2017-09-05 11:33  莫笑我胡为  阅读(98)  评论(0编辑  收藏  举报