BlaBla.cn 网页教程与代码的中文站点
最近更新日期:2007-04-30 作者:布啦布啦 参考来源:www.BlaBla.cn 布啦布啦网页教程与代码
网站首页
>
CSS 教程与实例代码
>
CSS 代码实例
>
CSS 背景属性实例
> 背景属性
编辑文本后点击显示结果
Blabla.cn
<html> <head> <title>背景属性 background</title> <style type="text/css"> body {background:#99FF00 url(../images/css_tutorials/background.jpg) no-repeat fixed 40px 100px} </style> </head> <body> <p>这个属性是设置背景相关属性的一种快捷的综合写法, 包括background-color, background-image, background-repeat, backgroundattachment, background-position。</p> <p>这个HTML所用的背景属性表示,网页的背景颜色是翠绿色,背景图片是background.jpg图片,背景图片不重复显示,背景图片不随内容滚动而动,背景图片距离网页最左面40px,距离网页最上面100px。</p> <p>这个属性是设置背景相关属性的一种快捷的综合写法, 包括background-color, background-image, background-repeat, backgroundattachment, background-position。</p> <p>这个HTML所用的背景属性表示,网页的背景颜色是翠绿色,背景图片background.jpg图片,背景图片不重复显示,背景图片不随内容滚动而动,背景图片距离网页最左面40px,距离网页最上面100px。</p> <p>这个属性是设置背景相关属性的一种快捷的综合写法, 包括background-color, background-image, background-repeat, backgroundattachment, background-position。</p> <p>这个HTML所用的背景属性表示,网页的背景颜色是翠绿色,背景图片是background.jpg图片,背景图片不重复显示,背景图片不随内容滚动而动,背景图片距离网页最左面40px,距离网页最上面100px。</p> </body> </html>
© 2005-2008 BlaBla.cn 版权所有