<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>
时间: 2024-10-13 16:15:35