您的位置:首页 > Web前端 > CSS

燕十八视频--CSS

2016-01-10 13:34 716 查看
1,浏览器解析标准声明doctype:总共有三种类型,分别为:transitional,strict,frameset

transitional:过渡型标准,这种标准允许使用表现层的标识,元素和属性

strict:严格型标准,不允许使用表现层的标识,元素和属性

frameset:框架型标准,当使用框架时需要使用此套标准

2,由于各个浏览器对网页各元素初试值不一,所以需要使用一个CSS文件初始化网页,以避免各浏览器的差异而造成网页显示的差异

3,CSS引入方式:

标签内:style="----"
style标签:<style type="text/css">-------</style>
外部引用:<link rel="stylesheet" type="text/css" href="----" />
CSS文件内引用:import @url(----)


4,CSS基本属性

布局:float--clear, display, overflow,clip
定位:position, z-index, top, bottom, left, right
边界:margin, margin-top, margin-bottom, margin-left, margin-right
边框:border, border-top, border-top-style, border-top-color, border-top-width, border-radius
补白:padding, padding-top, padding-bottom, padding-left, padding-right
尺寸:width, height, min-width, max-width
背景:background, background-color, background-image, background-repeat, background-attachment, background-clip,
background-origin, background-size, background-position
颜色:color, opacity(检索或设置对象的不透明度,0--1.0)
字体:font, font-style, font-weight, font-size, font-family,
文本:text-indent(首行缩进), text-align, line-height, text-decoration
表格:border-collapse(融合单元格边框)


5,CSS选择器

元素选择器:通配选择器(*), 类型选择器(E), id选择器,class选择器
关系选择符:E F, E>F, E+F, E~F
属性选择符
伪类选择符
伪对象选择符
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  html css