0

Marquee 无法滚动到 chrome 和 IE 中的全文,但在 Firefox 中完美运行

<marquee behavior="scroll" direction="left" scrollamount="2" scrolldelay="2" onmouseover="stop()"
                        onmouseout="start()" height="36" width="580"> <span runat="server" ID="lblNotiText" style="width:3000px ;">

Radio Bindaas  wishes all the listeners a very Happy Independence Day!!!  -- Director Sekhar Kammula launched the Radio Bindaas radio world wide.  -- Catch the exclusive interview with Sri Jayaprakash Narayan on this 66th Independence Day!!!  -- Mera Bharath Mahaan!!!!  -- hello  -- dsads  -- 
</span></marquee>
4

1 回答 1

0

Marquee 是一种非标准的 HTML 标记,最初是在 Microsoft 的 Internet Explorer 的早期版本中引入的,并且被比作 Netscape 的 blink 元素。选框可能会分散注意力。人眼被移动所吸引,字幕文本不断移动,因此 W3C 建议不要在 HTML 文档中使用它。IE、Firefox、Opera、Chrome 和 Safari 网络浏览器支持它以与旧页面兼容。

除此之外,您的代码在 Chrome ( 28.0.1500.95) 中运行良好:http: //jsfiddle.net/BenedictLewis/nHX6G/。我建议您使用W3 验证器检查您的代码。我还建议您考虑使用 jQuery 插件simpleScroll替换您的代码。

于 2013-08-15T13:15:07.003 回答