<table width="46%" height="650" border="0" align="center" cellpadding="0" cellspacing="0" background="file:///F|/pets/pets/img/Login-bg.gif">
<tr>
<td height="92"><img src="file:///F|/pets/pets/img/Login.gif" width="941" height="358" /></td> </tr>
<tr>
<td valign="top">
<form name="form1" id="form1" method="post" action="/PetsHospital/loginservlet">
<table width="60%" border="0" align="center" cellpadding="20" cellspacing="0">
<tr>
<td colspan="2"><font color="red"> ${param.errored}</font>
<br><div align="center" class="STYLE3">系统用户登录</div><br></td>
</tr>
<tr>
<td><div align="right" class="STYLE2">用户名:</div></td>
<td><input name="name" type="text" id="name" maxlength="20" /></td>
</tr>
<tr>
<td><div align="right" class="STYLE2">密 码:</div></td>
<td><input name="password" type="password" id="password" maxlength="20" /></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="登录" />
<input type="reset" name="Submit2" value="取消" onclick="clicked()"/></td>
</tr>
<tr align="center">
<td>欢迎您!</td>
</tr>
</table>
</form> </td>
</tr>
</table>在table上加的background="file:///F|/pets/pets/img/Login-bg.gif" 这个图片可以在ie中显示出来, =====上述标红处
在<td height="92"><img src="file:///F|/pets/pets/img/Login.gif" width="941" height="358" /></td>插入的图片在ie中显示不出来 =====上述标红处请问是到底是怎么回事?我用的是ie7,
<tr>
<td height="92"><img src="file:///F|/pets/pets/img/Login.gif" width="941" height="358" /></td> </tr>
<tr>
<td valign="top">
<form name="form1" id="form1" method="post" action="/PetsHospital/loginservlet">
<table width="60%" border="0" align="center" cellpadding="20" cellspacing="0">
<tr>
<td colspan="2"><font color="red"> ${param.errored}</font>
<br><div align="center" class="STYLE3">系统用户登录</div><br></td>
</tr>
<tr>
<td><div align="right" class="STYLE2">用户名:</div></td>
<td><input name="name" type="text" id="name" maxlength="20" /></td>
</tr>
<tr>
<td><div align="right" class="STYLE2">密 码:</div></td>
<td><input name="password" type="password" id="password" maxlength="20" /></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="登录" />
<input type="reset" name="Submit2" value="取消" onclick="clicked()"/></td>
</tr>
<tr align="center">
<td>欢迎您!</td>
</tr>
</table>
</form> </td>
</tr>
</table>在table上加的background="file:///F|/pets/pets/img/Login-bg.gif" 这个图片可以在ie中显示出来, =====上述标红处
在<td height="92"><img src="file:///F|/pets/pets/img/Login.gif" width="941" height="358" /></td>插入的图片在ie中显示不出来 =====上述标红处请问是到底是怎么回事?我用的是ie7,
看看Login.gif在"../img/"下吗?
然后你在页面上引用的时候,就用你的页面相对于图片的相对路径来引用,如../images/Login.gif