摘要: 1 z-index值表示谁压着谁,数值大的压盖住数值小的。 2 只有定位了的元素,才能有z-index,也就是说, 不管相对定位,绝对定位,固定定位,都可以使用z-index,而浮动元素不能使用。 3. z-index值没有单位,就是一个正整数,默认的z-index值为0 4. 如果大家都没有z-i 阅读全文
posted @ 2018-07-12 23:57 beallaliu 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 浮动,display转块转行 , 定位 这三部分学会后,网页想干嘛就干嘛 定位有三种:1. 相对定位 2. 绝对定位 3. 固定定位 position: relative; position:absolute; position:fixed; 一、 相对定位 在页面中,没有什么太大的作用,影响页面的 阅读全文
posted @ 2018-07-12 23:29 beallaliu 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1. 背景颜色 backgroud-color: 单词 或 rgb(255,0,0) 或 十六进制 #ff0000 #ff(red)00(green)00(blue) 如果六位的红黄蓝各自都一样的话,可以简化成三位的。 如:#ff0000 等价于#f00 #112233 等价于#123 #12121 阅读全文
posted @ 2018-07-12 21:29 beallaliu 阅读(126) 评论(0) 推荐(0) 编辑
摘要: a 标签的颜色不能通过继承来的 a 标签一定要设置宽度和高度 border-redius: 3px; ul { list-style: none; } .nav{ width:960px; overflow: hidden; margin: 100px auto 0; backupground-co 阅读全文
posted @ 2018-07-12 21:19 beallaliu 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 字号: font-size: 20px; 默认是16px px: 像素 rem em % 移动端使用的单位 字形: font-weight: bold; normal bold: 加粗 bloder: 更粗 lighter: 更细 也可用数字表示: 默认400; 100-700之间 inherits 阅读全文
posted @ 2018-07-12 14:07 beallaliu 阅读(154) 评论(0) 推荐(0) 编辑