<body style="background-image: url(imgName); background-repeat:repeat;">

解决方案 »

  1.   

    下面的代码的代码是一个完整的页面代码,无论你怎么调整,壁纸的大小都充满整个页面
    <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>&nbsp;</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>
      

  2.   

    壁纸壁纸,就是背景,楼上的那个随便往body里面写点东西试试看哪?
    起码:z-index应该等于-1嘛
    而且,用width:100%,height:100%,肯定没用的,
    窗口长宽的属性是什么(忘了)?
      

  3.   

    我当然是试过了的啦。比如你在
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

    <div ......之间随便敲几个字母,就会看见图片被压小了一块,怎么称得上是“壁纸”哪?倒是你自己试过了没有啊?还是和我说的:
    做一个层做背景(比如把layer的Zindex设置到-1)
    里面就放一张图片然后在用户改变窗口大小的时候(或者简单点就开始执行的时候)
    把图片大小设置成窗口大小。试试看吧(好像有个似乎也是楼主发的帖子:
    http://expert.csdn.net/Expert/topic/1524/1524342.xml?temp=.8833429
      

  4.   

    我为什么要用DIV,就是为了把文字你表格什么的写在上面,便于你在页面上添加内容,所有你们想要达到的效果我都能做到!