<body style="background-image: url(imgName); background-repeat:repeat;">
解决方案 »
- 请教高手:关于js脚本解析引擎的问题
- 打印空心正方形的javascript代码
- 这个改变style的方式怎么rip出来?
- Javascript、CSS、HTML等--深入理解Firefox和浏览器技术
- ■■高分请教:如何得到listbox的显示值呢?如下例子:■■
- 我想让一个网页一次只能有一个客户访问,访问的客户关闭了网页,另一个客户才能访问到。
- 文字编辑功能问题。例如我想对文章内容某一部分文字进行编辑,但我必须选中其中一部分,让他改变颜色/字体/尺寸,最后提交给jsp.
- 怎么写交换数组元素的函数呀?
- 这是不是IE5.0的BUG,在线等候!!!如何解决?
- easyui 分页滚动条问题
- 怎样才能让我打开的网页全屏?
- 怎么用JAVASCRIPT得到屏幕的宽度和高度!!!!(立即给分,在线等!)
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="Layer1" style="position:absolute; left:0px; top:0px; width:100%; height:100%; z-index:1">
<table width="60%" height="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
<td><img src="http://www.csdn.net/images/ad/ad-java.gif"></td>
</tr>
</table>
</div>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="http://search.microsoft.com/library/shared/toolbar/graphics/banners/MSDN_banner.gif" width="100%" height="100%"></td>
</tr>
</table>
</body>
起码:z-index应该等于-1嘛
而且,用width:100%,height:100%,肯定没用的,
窗口长宽的属性是什么(忘了)?
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
和
<div ......之间随便敲几个字母,就会看见图片被压小了一块,怎么称得上是“壁纸”哪?倒是你自己试过了没有啊?还是和我说的:
做一个层做背景(比如把layer的Zindex设置到-1)
里面就放一张图片然后在用户改变窗口大小的时候(或者简单点就开始执行的时候)
把图片大小设置成窗口大小。试试看吧(好像有个似乎也是楼主发的帖子:
http://expert.csdn.net/Expert/topic/1524/1524342.xml?temp=.8833429