title这个标签相当诡异

主  题: 我刚接触asp.net,问个入门的问题(页面不能显示)!谢谢大家
作  者: qqiiluo (叶舟)
等  级:
信 誉 值: 100
所属社区: .NET技术 ASP.NET
问题点数: 30
回复次数: 5
发表时间: 2004-09-19 04:26:25


我写的asp.net页面在xp的ie里面显示不出来,在2000就可以.我在页面上看了下源文件,是已经执行了的。在微软的支持里,提到说可能是先装了.net framework后装iis的原因,我用aspnet_regiis -i重新注册了了asp.net,但还是不行,想问问大家有没有什么解决方法?谢谢!
源代码:
<script language="vb" runat="server">
Sub Page_Load()
time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
End Sub
</script>

<html>
<head>
<title>The Punctual Web Server</tilte>
</head>
<body bgcolor="green">
<h1>Welcome</h1>
In webserver load the is currently:
<asp:label id="time" runat="server" />
</body>
</html>

回复人: noblepaul(小牛哥) ( 一级(初级)) 信誉:99 2004-09-19 05:34:00 得分: 0
 
Top
回复人: noblepaul(小牛哥) ( 一级(初级)) 信誉:99 2004-09-19 05:50:00 得分: 0
 
 

我找到原因了,是拼写错误:(

<title>The Punctual Web Server</tilte>

修改为:

<title>The Punctual Web Server</title>

即可!

由此我对title这个标签非常感兴趣,html的容错性是特别强,title成了例外?
我们让错误的拼写记录,把正确的
</title>放在不同的地方,看看页面显示效果
1、
<body bgcolor="green">
2、
<h1>Welcome</h1>
3、In webserver load the is currently:

我们可以发现
<title></title>中的内容全部显示在IE的最上面的蓝色条上了
有点诡异~按道理来说,这个拼写错误应该忽略掉的

有条件的网友用其它的浏览器测试一下,可以不包括ASP.NET代码:
<html>
<head>
<title>The Punctual Web Server</tilte>
</head>

<body bgcolor="green">
<h1>Welcome</h1>
In webserver load the is currently:
</body>
</html>

posted on 2004-09-19 05:50  小牛哥  阅读(610)  评论(1编辑  收藏  举报

导航