李白怎么刷大招:为什么Microsoft FrontPage做网页时背景总不是平铺的,要怎么搞????????????????

来源:百度文库 编辑:高考问答 时间:2024/05/09 05:11:27

你说的平铺是指“背景图片重复”吗?
网页默认背景图是自动重复显示的,除非在CSS中定义了:
background-repeat: no-repeat;

附参考资料:

background-repeat版本:CSS1 兼容性:IE4+ NS4+ 继承性:无
语法:
background-repeat : repeat | no-repeat | repeat-x | repeat-y
取值:
repeat :? 默认值。背景图像在纵向和横向上平铺
no-repeat :? 背景图像不平铺
repeat-x :? 背景图像仅在横向上平铺
repeat-y :? 背景图像仅在纵向上平铺

说明:
设置或检索对象的背景图像是否及如何铺排。必须先指定对象的背景图像( background-image )。
此属性对于 currentStyle 对象而言是只读的。对于其他对象而言是可读写的。
对应的脚本特性为 backgroundRepeat 。
示例:
menu { background: url("images/aardvark.gif"); background-repeat: repeat-y; }
p { background: url("images/aardvark.gif"); background-repeat: no-repeat; }