CSS
互联网切图仔
这个作者很懒,什么都没留下…
展开
-
CSS学习篇-2、css布局技巧
一、巧用margin负值(1) 1、场景描述:当我们要遇到下面这种情况时,会发现边框重叠了 2、解决方法 ul li { float: left; list-style: none; width: 150px; height: 200px; border: 1px solid #333; /*添加margin-left*/ margin-left: -1px; } 二、巧用mar原创 2020-08-02 11:55:32 · 109 阅读 · 0 评论 -
CSS学习篇-1、CSS常用水平垂直居中
一、通过绝对定位+margin来实现水平垂直居中 .box{ width: 300px; height: 300px; background-color: red; position: relative; } .son{ width: 100px; height: 100px; background-colo原创 2020-07-27 10:54:52 · 93 阅读 · 0 评论