摘要: 盒子模型 width height margin 一个值代表四个方向边距|两个值分别代表上下和左右|三个值分别代表 上、左右、下|四个值分别代表上右下左。 padding border :left|right|top|bottom color|width|style 位置可变,颜色可省 conten 阅读全文
posted @ 2017-08-18 08:53 代码森林 阅读(718) 评论(0) 推荐(0) 编辑
摘要: Background-color|image|position|repeat 颜色图片位置重复 图片优先 CSS Sprites雪碧图:减少http请求,减小服务器压力。一张大图,通过背景偏移position截取小图。 Li列表 list-style list-style-image list-st 阅读全文
posted @ 2017-08-18 08:52 代码森林 阅读(406) 评论(0) 推荐(0) 编辑
摘要: font-size|family|weight|style 大小字体加粗斜体 color|opacity 颜色透明度 height+line-height:垂直居中 overflow:hidden|visible|scroll 内容超出父元素的显示方式 text-align 文字对齐 letter- 阅读全文
posted @ 2017-08-18 08:46 代码森林 阅读(214) 评论(0) 推荐(0) 编辑
摘要: CSS基础 语法 : <head> <style type="text/css"> 选择器(即修饰对象){ 修饰属性:属性值; 修饰属性:属性值; } </style> </head> CSS选择器 标签选择器 ID选择器 类选择器 特殊选择器 交集 并集 后代选择器 通用选择器 伪类选择器 CSS 阅读全文
posted @ 2017-08-18 08:45 代码森林 阅读(234) 评论(0) 推荐(0) 编辑