gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 12:30:48 25 4
gpt4 key购买 nike

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com