CSS网页布局所需要了解的CSS基础知识
时间:2011-05-10
来源:互联网
一、可设置的CSS属性包括:字体属性、文本属性、颜色及背景属性、边框属性、容器属性(边距属性、填充属性)、分类属性、鼠标属性。
二、基础属性
字体属性:font-family font-style font-variant font-weight font-size
文本属性:word-spacing letter-spacing text-decoration vertical-align text-transform
text-align text-indent line-height
颜色背景属性:color background(background-color background-image background-repeat
background-attachment background-position)
边框属性:border(border-top border-right border-bottom border-left)(border-width
border-style border-color)
容器属性:margin padding width height float clear
分类属性:display white-space list-style-type list-style-image list-style-position
list-style
鼠标属性:auto crosshair default hand move e-resize ne-resize nw-resize n-resize se-resize
sw-resize s-resize w-resize text wait help
三、CSS布局
CSS盒模型的理解对于CSS布局有很大帮助,每个元素都有一个元素盒。HTML布局通常使用div+CSS,将网页分为很多方块,每个方块和整个总体都可以各用一个div容纳,然后用CSS对各个div进行布局。常用布局属性包括:margin padding float clear top right buttom left z-index position。
二、基础属性
字体属性:font-family font-style font-variant font-weight font-size
文本属性:word-spacing letter-spacing text-decoration vertical-align text-transform
text-align text-indent line-height
颜色背景属性:color background(background-color background-image background-repeat
background-attachment background-position)
边框属性:border(border-top border-right border-bottom border-left)(border-width
border-style border-color)
容器属性:margin padding width height float clear
分类属性:display white-space list-style-type list-style-image list-style-position
list-style
鼠标属性:auto crosshair default hand move e-resize ne-resize nw-resize n-resize se-resize
sw-resize s-resize w-resize text wait help
三、CSS布局
CSS盒模型的理解对于CSS布局有很大帮助,每个元素都有一个元素盒。HTML布局通常使用div+CSS,将网页分为很多方块,每个方块和整个总体都可以各用一个div容纳,然后用CSS对各个div进行布局。常用布局属性包括:margin padding float clear top right buttom left z-index position。
作者: 侯鸿飞 发布时间: 2011-05-10


作者: 焦占晓 发布时间: 2011-05-10
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28