一段奇怪的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也不够彻底……
<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也不够彻底……
相关文章推荐
- 一段奇怪的HTML代码
- 从一段html代码中获取Img标签
- [Ajax]便于在html页面中引用javascript显示后台数据的一段ajax代码
- java 生成静态html的一段代码
- 一段能瞬间秒杀所有版本IE的简单HTML代码
- 一段关于C内存分配的奇怪代码
- java如何从一段html代码中获取图片的src路径
- 如何在纯HTML的静态网页中添加一段统计网页访问量的JAVA Script代码?
- 如果在HTML中重复调用一段导航代码
- js正则实现从一段复杂html代码字符串中匹配并处理特定信息
- 一段奇怪的代码
- jsp多页面使用同一段html jsp代码方法 多页面包含同一段html代码
- 一段消除HTML标签格式的代码
- 一段奇怪的代码:
- Thymeleaf在js中拼接一段字符串或者一段html代码
- 从一段奇怪代码开始说
- 差点被一段HTML代码害死
- 转:在网页html/aspx中增加一段播放器代码
- 一段使用C++的奇怪代码
- 如何在纯HTML的静态网页中添加一段统计网页访问量的JAVA Script代码?