电脑软硬件应用网
当前位置: 电脑软硬件应用网 > 设计学院 > 网络编程 > CSS教程 > 正文
简单总结CSS的基础属性
简单总结CSS的基础属性
2009-10-3 9:30:08  文/网络收集   出处:电脑软硬件应用网   

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

  • 上一篇文章:

  • 下一篇文章:
  • 最新热点 最新推荐 相关文章
    CSS伪类选择器nth-child()
    css3教程:background属性调整增强
    css教程:CSS3 Media Queries 详解
    CSS 类名的长命名和短命名
    CSS实例教程:非浮动区域设置宽度
    如何使用css约束一个层不可见?
    CSS的list-style解释
    小议使用“完整”的CSS的缺点
    CSS中的相对定位与绝对定位详解
    实例使用DIV+CSS制作圆角边框加阴影…
    关于45IT | About 45IT | 联系方式 | 版权声明 | 网站导航 |

    Copyright © 2003-2011 45IT. All Rights Reserved 浙ICP备09049068号