把图片放到中间,并且用户名跟密码及按钮能固定到图片上
各位帮下忙~

解决方案 »

  1.   

    <body background="图片">
    ok
      

  2.   

    <table width="1024" border="0" cellpadding="0" cellspacing="0" align="center">
    <tr>
    <td height="586" align="center" background="<%=basePath %>image/login.jpg">
    <table border="0">
      <tr>
        <td font color="#BBCBDA">用户名:</font></td>
        <td><input type="text" size="35" name="username" /></td>
        <td rowspan="2"><input type="image"  style="border:0" onClick="return logincheck()" src="<%=basePath %>image/login.jpg" name="s"/></td>
        <td rowspan="2"><input type=image style="border:0"  onClick="return clearform()" src="<%=basePath %>image/reset.jpg" name="r"/></td>
      </tr>
      <tr>
        <td font color="#BBCBDA">密 码:</font></td>
        <td><input type="password" size="35" name="password"/></td>
      </tr>
    </table>
    </td>
    </tr>
    </table>
      

  3.   

    那是当然 ..你图片尺寸太小了..<TD>中间东西尺寸太了...
    但方法应该没错..
      

  4.   

    图片放到中间,不占满全屏,对吗?
    如果是的,可以这样做:把登陆的信息和按钮放在一个table中,然后把图片设置为table的背景图片,居中显示,就可以了。<TABLE align="center" background="/login1.jpg" width="780" height="428" id="table">祝你好运!
      

  5.   

    1、做一个完整的图片,包括你的用户名、密码输入,然后通过切图的方式把图片切开,你只需要在特定的图片上加连接和输入框就行。但这样的坏处是如果切片的图片过多,页面加载会很慢
    2、通过style="position:relative;top:30px;left:-65px;');"来设置你用户名、密码的相对位置,把参数自己调调就出来了
      

  6.   

    这个要用到css的,
    建议LZ多看一下