当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS background属性

CSS
CSS 介绍
CSS 语法
使用 CSS
CSS 背景
CSS 文字
CSS 字体
CSS 边框
CSS 边距
CSS 填充
CSS 列表
CSS 尺寸
CSS 类别
CSS 定位
CSS 伪类
CSS 伪元素
CSS2 Media类型
CSS 摘要
CSS 实例
CSS2 参考资料
CSS2 打印

CSS background属性


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

The background property is a shorthand property for setting all background properties in one declaration.
background属性是用一次声明就能设置所有背景属性的的速记法。

继承性:

举例

body

background: #FF0000
}

body

background: url(stars.gif) no-repeat top
}

body

background: #00FF00 url(stars.gif) no-repeat fixed top
}  

可用值

描述
background-color
background-image
background-repeat
background-attachment
background-position
You can declare from one to five background properties in this declaration
你可以用一句声明就把5个背景属性都设置好

评论 (0) All

登陆 | 还没注册?