当前位置: 首页 > 图文教程 > 网页制作 > CSS样式表 > 学习CSS需要知道的CSS基础知识

CSS样式表
CSS中box(盒模式)的分析
CSS2快速参考
CSS布局入门
怎么改善现有网站
display&position
表格斜线
转载:On having layout
标准化你的网页
HTML技巧汇编
动态CSS站点教程:多个页面样式提供浏览者选择
鲜为人知的CSS技巧10则
详谈 CSS样式表使用:链接/嵌入
W3C标准:实时切换CSS样式
On having layout
XHTML与HTML之间的区别
XHTML标准语法
针对浏览器隐藏CSS
CSS基础学习
130个漂亮CSS布局站点参考
css技巧十条

CSS样式表 中的 学习CSS需要知道的CSS基础知识


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-27   浏览: 79 ::
收藏到网摘: 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。