2017年7月3日

摘要: Css3中的渐变 1. 线性渐变 div { background image:linear gradient(); } background image:linear gradient(red,yellow); 线性渐变的基础参数 : ① 起始颜色和最终颜色 ② 方向 通过to + left / 阅读全文
posted @ 2017-07-03 08:55 热干面肉夹馍 阅读(105) 评论(0) 推荐(0) 编辑
 
摘要: 清除浮动 目前使用范围最广的方法 .clearfix:before,.clearfix:after{ display: table; content: "";} .clearfix:after { clear: both;} .clearfix { zoom: 1;} 阅读全文
posted @ 2017-07-03 08:50 热干面肉夹馍 阅读(81) 评论(0) 推荐(0) 编辑
 
摘要: html条件注释 Tip :关于条件注释,应用普遍的是专门针对IE的条件注释,如下: <! [if lt IE 9] <![endif] 其中,lt 是修饰,同类型的修饰有以下几个: lte :就是Less than or equal to的简写,也就是小于或等于的意思。 lt :就是Less th 阅读全文
posted @ 2017-07-03 08:45 热干面肉夹馍 阅读(120) 评论(0) 推荐(0) 编辑
 
摘要: CSS中的定位 绝对定位、相对定位、固定定位 相对定位 :position:relative 用来给元素(标签)进行位置微调 ,给绝对定位做参考 (子绝父相); top bottom left right; 相对定位的元素进行位置移动时,是相对于自己原来的位置进行移动; 绝对定位 :position 阅读全文
posted @ 2017-07-03 08:39 热干面肉夹馍 阅读(105) 评论(0) 推荐(0) 编辑