摘要: 一、需要掌握的技能 1、水平垂直居中 学习资料:https://www.cnblogs.com/hello9102/articles/11773437.html 2、模拟下拉选框 纯css实现:https://www.cnblogs.com/yewenxiang/p/6064117.html 3、制 阅读全文
posted @ 2019-11-01 01:11 hello9102 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 水平居中 1、把margin设为auto(块状元素,居中的块元素需要有固定的宽度,因为占据100%宽度) 把要居中的元素的margin-left和margin-right都设为auto,此方法只能进行水平的居中,且对浮动元素或绝对定位元素无效。 2、使用 text-align:center(行内元素 阅读全文
posted @ 2019-11-01 01:06 hello9102 阅读(771) 评论(0) 推荐(0) 编辑