html - 在 IE 和 Chrome 中选取框不滚动到全文

标签 html css marquee

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>

最佳答案

Marquee is a non-standard HTML tag, first introduced in early versions of Microsoft's Internet Explorer, and was compared to Netscape's blink element. Marquee can be distracting. The human eye is attracted to movement, and marquee text is constantly moving, as such W3C advises against its use in HTML documents. IE, Firefox, Opera, Chrome and Safari web browsers support it for compatibility with legacy pages.

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

关于html - 在 IE 和 Chrome 中选取框不滚动到全文,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18253128/

相关文章:

php在循环期间添加额外的p标签到html中

jquery - 如何在 jquery 中删除一行后重置表行号?

CSS3 线性渐变

java - 搜索 "available hotel rooms"需要帮助的逻辑

javascript - 通过前端而不是 http 与后端通信

javascript - 是否可以使容器内的元素大于容器?

html - Safari CSS 规则 vh-units?

javascript - 消除文本选取框中的间隙

CSS Marquee 动画 - 在内容完全离开屏幕之前再次显示内容

javascript - 在起始位置停止或暂停选取框