您的位置:首页 > Web前端 > HTML

一段奇怪的HTML代码

2005-01-08 23:11 302 查看
一段奇怪的HTML代码,居然在IE(IE 6.0)里没有滚动效果,而在FireFox里有(相信原意是想做成滚动的):

<table cellpadding=2 cellspacing=0 style="font-size:9pt ;color: ;background: ;align:left ;width:480 ;height: ;" align='2' valign='2' width='100%' height='100%'><tr bgcolor='#53a618'><td style="text-align:left;color:#ffffff;font-size:nullpt;height:22;">上海市今明天气预报</td></tr><tr><td vAlign=top style='border:solid #53a618 1px;border-top:0px'><marquee onmouseover="javascript:this.stop()" onmouseout="javascript:this.start()" scrollAmount="1" scrollDelay="60" width="98%" height="98%" direction=up><table style="font-size:9pt ;color: ;background: ;align:left ;width:480 ;height: ;" cellpadding='5'><tr><td><p><span>上海中心气象台预报稿

上海中心气象台2005年01月08日21时发布的今夜和明天上海市天气预报:

多云,明天晴到多云。

偏北风4-5级,

明天最高温度6度,最低温度零度,局部地区有薄冰。

今天相对湿度40%--80%, 明天相对湿度40%--80%.  </span></li></td></tr></table></marquee></td></tr></table>

不知道有什么玄机,让IE不会滚动<marquee>中的内容。初步实验,觉得是外层table的一些style与marquee在IE中有些冲突吧。呵呵,毕竟IE支持CSS2也不够彻底……
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: