|
主题: 求助网页固定背景
|
雨下一周
职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2004/4/17 20:32:47
|
#12006/10/20 16:40:49
我想做一个网站,我做了一个图片,刚好一个屏幕(需要的那么大),但我的文字多于一个屏幕(要翻屏),托动滚动条时,发现是由一幅图片反复叠加而成,我想固定底层,问各位大虾怎么做???????????
|
cail_5d
职务:普通成员
等级:2
金币:1.0
发贴:344
注册:2002/8/20 22:09:00
|
#22006/10/20 16:46:27
固定背景设定方法 使用時去掉代碼前的*號.
--------------------------------------------------------------------------------
◇ 页面上部平铺 ◇
<*head> <*style type="text/css"> <*!-- body{background:url(图片名) 背景色 repeat-x fixed left top;} --> <*/style> <*/head>
--------------------------------------------------------------------------------
◇ 页面下部平铺 ◇
<*head> <*style type="text/css"> <*!-- body{background:url(图片名) 背景色 repeat-x fixed left bottom;} --> <*/style> <*/head>
--------------------------------------------------------------------------------
◇ 页面左边重复 ◇
<*head> <*style type="text/css"> <*!-- body{background:url(图片名) 背景色 repeat-y fixed left top;} --> <*/style> <*/head>
--------------------------------------------------------------------------------
◇ 页面右边重复 ◇
<*head> <*style type="text/css"> <*!-- body{background:url(图片名) 背景色 repeat-y fixed right top;} --> <*/style> <*/head>
--------------------------------------------------------------------------------
◇ 页面左上角 ◇
<*head> <*style type="text/css"> <*!-- body{background:url(图片名) 背景色 no-repeat fixed left top;} --> <*/style> <*/head>
--------------------------------------------------------------------------------
◇ 页面左下角 ◇
<*head> <*style type="text/css"> <*!-- body{background:url(图片名) 背景色 no-repeat fixed left bottom;} --> <*/style> <*/head>
--------------------------------------------------------------------------------
◇ 页面右上角 ◇
<*head> <*style type="text/css"> <*!-- body{background:url(图片名) 背景色 no-repeat fixed right top;} --> <*/style> <*/head>
--------------------------------------------------------------------------------
◇ 页面右下角 ◇
<*head> <*style type="text/css"> <*!-- body{background:url(图片名) 背景色 no-repeat fixed right bottom;} --> <*/style> <*/head>
--------------------------------------------------------------------------------
◇ 页面居中 ◇
<*head> <*style type="text/css"> <*!-- body{background:url(图片名) 背景色 no-repeat fixed center cenger;} --> <*/style> <*/head>
|
雨下一周
职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2004/4/17 20:32:47
|
#32006/10/20 16:56:25
谢谢楼上的
|
荣誉会员
职务:普通成员
等级:1
金币:-3.0
发贴:81
注册:2001/8/12 16:31:25
|
#42006/10/21 16:12:47
试试…… 感谢二楼分享
|
pxh2001
职务:普通成员
等级:1
金币:3.0
发贴:87
注册:2004/7/20 10:32:56
|
#52006/11/8 10:52:57
现在版本8的有这个选项
|