![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
在路上等
这个作者很懒,什么都没留下…
展开
-
首页页面置灰
首页页面置灰原创 2022-12-01 22:08:00 · 144 阅读 · 0 评论 -
图片常用的属性
图片常用的css属性原创 2022-11-01 17:33:33 · 619 阅读 · 0 评论 -
css3.0选择器
/* 第一个子元素 */ p:first-of-type { background:#ff0000; } /* 最后一个子元素 */ p:last-of-type { background:bisque; } /* 选择第二个元素 */ p:nth-of-type(2){ background: violet; } /* 配属于其父元素的特定类型的唯一子元素的每个元素 */ span:only-of-type原创 2020-10-21 23:13:50 · 144 阅读 · 0 评论 -
css文字类 换行对齐
css 文字换行对齐原创 2022-11-03 11:00:13 · 764 阅读 · 0 评论 -
手写遮罩层优化
css遮罩层的书写和优化原创 2022-10-14 12:07:24 · 155 阅读 · 0 评论 -
1.position 解析
css中正常文档流 从左到右,从上到下;position:这个属性定义建立元素布局所用的定位机制。任何元素都可以定位,不过绝对或固定元素会生成一个块级框,而不论该元素本身是什么类型。相对定位元素会相对于它在正常流中的默认位置偏移。absolute 生成绝对定位的元素,相对于 static 定位以外的第一个父元素进行定位。 元素的位置通过 "left", "top", "right" 以及 "bottom" 属性进行规定。 fixed 生成绝对定位的..原创 2021-11-19 11:02:51 · 181 阅读 · 0 评论 -
css铺满的方法
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style> html, body { width: 100%; height: 100%; } * { margin: 0; padding: 0; } #tble { background-原创 2020-11-05 10:00:07 · 1100 阅读 · 0 评论 -
css铺满页面
html, body {margin:0;padding:0;} .container {height:100%;width:100%;/*width: 100%;*/border: 1px solid green;position:fixed;background: url(image/login.jpg) no-repeat;text-align:center; }css铺满页面原创 2020-10-23 17:45:18 · 554 阅读 · 0 评论