绿色资源网:您身边最放心的安全下载站! 最新软件|热门排行|软件分类|软件专题|论坛转帖|厂商大全

绿色资源网

技术教程
您的位置:首页网页设计HTML/CSS → CSS布局中的一些基础属性

CSS布局中的一些基础属性

我要评论 2011/09/15 13:10:25 来源:绿色资源网 编辑:downcc.com [ ] 评论:0 点击:248次

刚接触设计工作的朋友不得不使用CSS,本文就简单介绍一些在使用CSS的时候经常用到的一些属性的使用信息,希望对你有所帮助。

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

阅读本文后您有什么感想? 已有 人给出评价!

  • 1 欢迎喜欢
  • 1 白痴
  • 1 拜托
  • 1 哇
  • 1 加油
  • 1 鄙视