<字幕>ie8的问题

发布于 2024-08-22 09:00:38 字数 113 浏览 5 评论 0原文

我的 标签在 ie6 和 ie7 中工作正常,但在 ie8 中它只显示第一项。

我该如何解决这个问题?

提前致谢。

My <marquee> tag is working perfectly in ie6 and ie7, but in ie8 it only shows first item.

How can I fix this?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

眼中杀气 2024-08-29 09:00:38

marquee 元素已被弃用。 W3C 建议使用 作为替代方案。如果您需要模仿选取框的行为,JavaScript 可以提供用于执行此操作的工具。 此讨论有一个有效的 JavaScript 示例。

The marquee element is deprecated. The W3C recommends using <em> and <strong> as alternatives. If you need to mimic the behavior of the marquee, JavaScript has tools for doing that. This discussion has a working JavaScript example.

你的往事 2024-08-29 09:00:38

尽管链接这个让我很痛苦:
http://remysharp.com/demo/marquee.html

一个基于jquery的选取框,可以使用跨浏览器。

As much as it pains me to link this:
http://remysharp.com/demo/marquee.html

A jquery based marquee which will work across browsers.

樱娆 2024-08-29 09:00:38

尽管我厌恶该元素及其绝大多数用例,CSS3 似乎已将其带回来

As much as I loathe the element and the vast majority of its use-cases, CSS3 seems to have brought it back:

明月松间行 2024-08-29 09:00:38

据我了解,Marquee 已被弃用,IE8 可能是微软决定完全放弃对该标签支持的 IE 版本。即使你确实找到了让它工作的方法,我建议使用另一种方法来让文本滚动(如果这是需要的),因为你可能会在下一个版本中遇到同样的问题(如果是 IE)。

编辑:
您可以尝试 java 脚本...经过快速搜索后,我发现这个网站看起来会为您生成代码。另外,由于它是 javascript,它现在也应该可以在 Firefox、Chrome 等上运行。
http://rumkin.com/tools/marquee/

From what I understand Marquee is deprecated, and IE8 might be the version of IE that Microsoft decided to completely leave out support for that tag. Even if you do find a way to get it to work, I would suggest using another method to get the text to scroll (if that is what is needed) becuase you will probably have the same problem in the next version if IE.

EDIT:
You can try java script...after a quick search I found this site that looks like it will generate the code for you. Also, since it's javascript it should now also work on Firefox, Chrome, etc.
http://rumkin.com/tools/marquee/

深居我梦 2024-08-29 09:00:38

我真的觉得滚动条机制是 Web 2.0 之前的。如果您的客户想要它,那么您可能没有很多选择,但我真的会尝试做一些演示来强调有更好的方法,并且如果正确实施,它不会导致网站任何不稳定。

我知道许多客户都很谨慎,但根据我的经验,如果你可以向他们展示更好的替代方案,同样稳定甚至更稳定且成本(时间和金钱)较低,那么他们往往愿意接受新方式。

I really feel the scroller mechanism is pre-Web 2.0. If your client wants it, well you may not have a lot of options but I would really try and do some kind of demo to highlight that there are better ways and it would not cause any instability to the site if implemented correctly.

I know many clients are cautious, but in my experience if you can show them a better alternative which is as stable or even more stable and at a low cost (time and money) then they are willing to accept the new way more often than not.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文