[新手提问]dreamweaver不是说所即所得吗,为什么我每次做的东西都...(详细请进)
我照书上用dreamweaver做了一个登陆界面,在设计窗口看还可以
然后一在IE看就面目全非了,每次都是,怎么那么奇怪?怎么解决?
而且这一次特别离奇,我在table里写的表单text全都不见了!!
代码入下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<title> Dang </title>
<style type= "text/css ">
<!--
body,td,th {
font-family: Times New Roman, Times, serif;
font-size: 16px;
}
-->
</style> </head>
<body>
<form id= "form1 " name= "form1 " method= "post " action= " ">
<table width= "450 " border= "1 " align= "center " cellpadding= "0 " cellspacing= "0 ">
<tr>
<td> <img src= "img/logo.gif " width= "133 " height= "50 " /> </td>
</tr>
<tr>
<td align= "center "> <table width= "450% " border= "0 " align= "center " cellpadding= "0 " cellspacing= "0 " bgcolor= "#CCCCCC ">
<tr>
<td colspan= "2 " align= "left " nowrap= "nowrap "> 请输入您曾在当当注册的E-mail地址及密码,以便进入你您的帐户 </td>
</tr>
<tr>
<td width= "180 " align= "center " valign= "middle " nowrap= "nowrap "> E-Mail地址 </td>
<td width= "270 " align= "left " valign= "middle "> <label>
<input name= "text1 " type= "text " id= "text1 " value= " .com " size= "20 " maxlength= "20 " />
</label> </td>
</tr>
<tr>
<td width= "180 " align= "center " valign= "middle " nowrap= "nowrap "> 登录密码 </td>
<td width= "270 " align= "left " valign= "middle "> <label>
<input name= "text2 " type= "text " id= "text2 " size= "20 " maxlength= "30 " />
</label> </td>
</tr>
<tr>
<td width= "180 " align= "center " valign= "middle " nowrap= "nowrap "> 出生日期(选填) </td>
<td width= "270 " align= "left " valign= "middle "> <label>
<input name= "t1 " type= "text " id= "t1 " value= "1985 " size= "6 " maxlength= "5 " />
年
<input name= "t2 " type= "text " id= "t2 " value= "01 " size= "5 " maxlength= "5 " />
月
<input name= "t3 " type= "text " id= "t3 " value= "01 " size= "5 " maxlength= "5 " />
日
</label> </td>
</tr>
<tr>
<td colspan= "2 "> </td>
</tr>
</table> </td>
</tr>
</table>
</form>
</body>
</html>
[解决办法]
我遇到过这种问题,好像不是代码的问题,可能是你的浏览器被篡改了,你下载个超级兔子或者奇虎安全卫士把你的浏览器修复一下,看看
[解决办法]
很多时候Dreamweaver并非所见即所得!
您的这个问题可能有多方面的原因
浏览器版本问题 自身HTML代码问题 CSS问题等等 或者可能还有楼上兄弟的那个原因
[解决办法]
明显这是粗心的问题:
你把第二个table里的450写成了450%
[解决办法]
hehe 450%
那个东西做为初学参考还可以~
所见即所得?不是:扯
[解决办法]
养成好的代码习惯,保持细心检查错误的心情