JSP登陆界面,图片怎么放到页面中间? 把图片放到中间,并且用户名跟密码及按钮能固定到图片上各位帮下忙~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <body background="图片">ok <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> 那是当然 ..你图片尺寸太小了..<TD>中间东西尺寸太了...但方法应该没错.. 图片放到中间,不占满全屏,对吗?如果是的,可以这样做:把登陆的信息和按钮放在一个table中,然后把图片设置为table的背景图片,居中显示,就可以了。<TABLE align="center" background="/login1.jpg" width="780" height="428" id="table">祝你好运! 1、做一个完整的图片,包括你的用户名、密码输入,然后通过切图的方式把图片切开,你只需要在特定的图片上加连接和输入框就行。但这样的坏处是如果切片的图片过多,页面加载会很慢2、通过style="position:relative;top:30px;left:-65px;');"来设置你用户名、密码的相对位置,把参数自己调调就出来了 这个要用到css的,建议LZ多看一下 在页面A使用servlet接收值,在页面B中使用 STRUTS2首页重定向的问题 jsp管理员功能 Filter的使用,dofilter之后,页面如何跳转 请教 : Runtime.getRuntime().exec(command);可不可以执行“cd /../"切换路径 文本框数组~查了很久还是没找到解决办法~ 如何非正常关闭页面清除session =========研究JPetstore5.0======= 关于文件流的问题, 一个很奇怪的问题?有关request对象的getParameter()方法的。 乱码问题 jsp如何定时更新数据
ok
<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>
但方法应该没错..
如果是的,可以这样做:把登陆的信息和按钮放在一个table中,然后把图片设置为table的背景图片,居中显示,就可以了。<TABLE align="center" background="/login1.jpg" width="780" height="428" id="table">祝你好运!
2、通过style="position:relative;top:30px;left:-65px;');"来设置你用户名、密码的相对位置,把参数自己调调就出来了
建议LZ多看一下