![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Web前端
文章平均质量分 68
sendear
这个作者很懒,什么都没留下…
展开
-
css布局(定位、浮动等)方法
目录居中1. 上下居中 line-height2. 左右居中 text-align等级1. 块级元素2. 行内元素布局1. 版心2. 绝对定位3.相对定位4. 固定定位5. 浮动清除浮动0. 基础清除浮动法1. 额外标签隔墙法2. overflow:hidden3. 伪元素法4. 双伪元素法权重其它居中1. 上下居中 line-height.box{ border: 1px solid red; height: 60px; line-height: 60px;}2. 左右居中 te原创 2021-03-29 19:56:03 · 118 阅读 · 0 评论 -
css初始化
新建文件 base.css放入以下内容/*css 初始化 */html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img { margin:0; padding:0; }fieldset, img,input,button { border:none; padding:0;margin:0;outline-style:none; }ul, ol { list-style.原创 2021-03-29 09:21:03 · 88 阅读 · 0 评论