-
内容(content)
-
填充(padding,内边距)


- 边框(border)

- 边界(margin,外边距)


-
CSS3新增特性
- RGBA透明度:
RGB(红色R+绿色G+蓝色B),RGBA则在其基础上增加了Alpha通道,可用于设置透明值
- 块阴影与圆角阴影:
box-shadow text-shadow
- 圆角:
border-radius
- 边框图片:
border-image
- 形变:
transform: none | <transform-function>[<transform-fuction>]
- RGBA透明度:
-
CSS布局
- 默认情况下,所有的网页标签都在标准流布局中
- 从上到下,从左到右
- 脱离标准流的方法有
- float属性
- position属性 和 left、right、top、bottom属性
- 默认情况下,所有的网页标签都在标准流布局中
- float属性
- float属性的常用取值有
- left:脱离标准流,浮动在父标签的最左边
- right:脱离标准流,浮动在父标签的最右边
- float属性的常用取值有
- position属性

-
JavaScript的书写方式
页内JS:在当前网页的script标签中编写
<script type="text/javascript">
</script>
外部JS
<script src="index.js"></script>
网友评论