当前位置: 首页 > 图文教程 > 网页制作 > CSS样式表 > 网页制作教程:简单总结CSS的基础属性

CSS样式表
CSS 关于网页图片的属性
CODEPAGE 列表与asp应用例子
html 的 ContentType 小结
不要使用CSS Expression的原因分析
css ie6 ie7 ff的CSS hack使用技巧
div+CSS网页布局的意义与副作用原因小结
iframe自适应高度的多种方法方法小结
css display:none使用注意事项小结
html工作中表格<tbody>标签的使用技巧
input为disabled提交后得不到该值的解决方法
Css Reset(复位)方法整理
css首字放大实例代码
让IE ff Opera同时支持Alpha透明的方法
WEB标准网页布局中尽量不要使用的HTML标签
css网页布局中注意的几个问题小结
指定网页的doctype解决CSS Hacking方法总结
左侧固定宽度,右侧自适应宽度的CSS布局
DIV+CSS经常用到的属性、参数及说明
校内网css代码添加背景图片常用代码
css 通配符用法总结

CSS样式表 中的 网页制作教程:简单总结CSS的基础属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-09   浏览: 118 ::
收藏到网摘: n/a

 一、可设置的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。