随笔分类 -  CSS

摘要:1.元素水平、垂直居中 (1)子绝父相(定位) <div class="father"> <div class="son"></div> </div> .father{ width:100px; height:100px; background:#000; position:relative; } 阅读全文
posted @ 2022-09-07 10:08 胡同树下 阅读(37) 评论(0) 推荐(0)
摘要:1.复选框汉字不对齐 <input type="checkbox" v-model="isAll" /><span>全选</span> 2.input、span加上vertical-align: middle;属性 input { vertical-align: middle; } span { v 阅读全文
posted @ 2022-08-30 10:49 胡同树下 阅读(99) 评论(0) 推荐(0)