Sign-up....

奇怪问题

请教各位高手:

如下网页,需要刷新一下后网页中的表格才占满整个窗口,但我的表格宽度已经设为100%了。

<html>

<head>

<meta http-equiv="Content-Language" content="zh-cn">

<title></title>

<meta http-equiv="Content-Type" content="text/html; charset=charset=gb2312">

</head>

<center>

<body bgcolor="#003399" text="#FFFFFF" link="#FF6600" vlink="#FF6600" alink="#FF6600" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table align=center width="100%" border="0" background="images/top_bg.gif" cellspacing="0" cellpadding="0" >

<tr>

<td width="360" height="103" background="images/top_bg.gif"><img src="images/top_c1.gif" width="360" height="103"></td>

<td width="100%" background="images/top_bg.gif" >

<div align="right"><img src="images/top_c21.gif" width="440" height="103" border="0" align="right"></div>

</td>

</tr>

</table>

<table align=center width="100%" border="0" cellspacing="0" cellpadding="0" height="8" style="border-collapse: collapse" bordercolor="#111111">

<p align="center">

<tr>

<td width="100%" align="right" height="58" colspan="6">

<p align="center">

<img border="0" src="images/General.bmp" align="middle"></td>

</tr>

<tr>

<form action="login.asp" method="POST" name="login" target="_parent">

<td width="21%" align="center" height="8">

  </td>

<td width="8%" align="center" height="8">

<font face="华文细黑">用户名</font></td>

<td width="10%" height="8" align="center">

<p align="left">

<input type="text" name="loginname" style="font-size:12px;width:60px;BORDER-BOTTOM: #003366 1px; BORDER-LEFT: #003366 1px ; BORDER-RIGHT: #003366 1px ; BORDER-TOP: #003366 1px;BACKGROUND-COLOR:#C7D7E2" onKeypress="if (event.keyCode==32) event.returnValue = false;" value="ttt" size="20">

</td>

<td width="6%" align="center" height="8"><font face="华文细黑">密 码</font></td>

<td width="13%" height="8" align="center">

<p align="center">

<input type="password" name="loginpwd" style="border:1px none #003366; font-size:12px;width:60px;BACKGROUND-COLOR:#C7D7E2; float:left" onKeypress="if (event.keyCode==32) event.returnValue = false;" size="20">

</td>

<td width="42%" height="8" align="center">

<input type="image" src="images/login.gif" border=0 align="middle">

</td>

</form>

</tr>

<P>

</table>

<table align=center width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="360" height="69" background="images/bottom_c2_bg.gif">

<img src="images/bottom_c1.gif" width="360" height="69" border="0"></td>

<td background="images/bottom_c2_bg.gif" height="69" > </td>

</tr>

</table>

</body>

</center>

</html>

[2848 byte] By [msdn] at [2007-8-14 9:40:27]
# 1 Re: 奇怪问题

没有问题啊.楼生自己弄错了吧

thinkming at 2005-5-16 23:33:43 >
# 2 Re: 奇怪问题

是比较奇怪,要刷新一下才可以.

paul2002 at 2005-5-20 12:37:35 >
# 3 Re: 奇怪问题

不会啊,我这除了看不到图片之外都正常阿

fengzi0924 at 2005-5-20 14:45:28 >
# 4 Re: 奇怪问题

这个问题好象早就解决了

jimohongqilishijin at 2005-5-21 14:59:52 >
# 5 Re: 奇怪问题

还没解决,单独存为html文件再直接打开浏览是正常的,但是一旦在IIS里再用IE进行浏览就不正常了,最右边总是空一条出来。不知为什么?

谢谢各位。

paul2002 at 2005-5-22 15:21:51 >
# 6 Re: 奇怪问题

单独存为html文件再直接打开浏览是正常的,但是一旦在IIS里再用IE进行浏览就不正常!!!

paul2002 at 2005-5-23 11:13:18 >
# 7 Re: 奇怪问题

给个地址。看下

leo963258 at 2005-5-23 12:50:20 >
# 8 Re: 奇怪问题

TO: leo963258(读书之人)

我这儿没有外网的地址,你在IIS里新件个虚拟目录再用IE进行浏览看看正常吗?

我这里即使没有图片也不正常.

paul2002 at 2005-5-23 14:44:30 >
# 9 Re: 奇怪问题

<style type="text/css">

<!--

body {

margin: 0px;

}

-->

</style>

leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"

这种用法不符合新的html规范。用css控制。

fantiny at 2005-5-23 16:06:28 >
# 10 Re: 奇怪问题

谢谢 fantiny,问题解决了。

另外也谢谢各位热心人。

BTW:

可以去:

http://community.csdn.net/Expert/topic/4007/4007863.xml?temp=8.815944E-03

http://community.csdn.net/Expert/topic/4007/4007863.xml?temp=8.815944E-03

拿分。

paul2002 at 2005-5-24 9:08:17 >

Web

All Classified