<选取框>标记,立即显示文本 [英] <marquee> tag, show text immediately

查看:70
本文介绍了<选取框>标记,立即显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在带有< marquee> tahg的文字只有在另一面完全消失时才出现。
您需要等到所有的文字消失,然后才从另一边来。
如何让文字消失很快出现在另一边?



我希望你明白我的问题。

解决方案 < marquee> 标记 - 暂时没有看到。它有各种各样的跨浏览器问题 - 它在Firefox中完全不起作用。它实际上并不在HTML标准中,它是由Microsoft引入的自定义标签。



您描述的问题是它的工作方式,并且无法自定义它。你唯一可以做的事情是(我不能强调我会推荐而不是这样做的强度)是复制文本几次并放置很多空格它之间。这将模拟您试图使用唯一标签标签实现的效果。



然而,这应该是绝对最后的手段。使用JavaScript来做这件事几乎肯定会更好。定制更容易,并且可以在所有浏览器中使用。



以下是一些可定制的JavaScript: http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm 或者您可以使用像 http://remysharp.com/demo/marquee.html


The text now with <marquee> tahg appears on one side only when the other disappear completely. You need to wait until all the text disappears and only then he come from other side. How to make text disappear soon appear on the other side?

I hope you understand my problems.

解决方案

Wow the <marquee> tag - not seen that for a while. It has all sorts of cross-browser problems - it doesn't work at all in Firefox. It's not actually in the HTML standard, it was a custom tag introduced by Microsoft.

The problem you describe is the way that it works, and there's no way of customising it. The only thing you could do (and I can't stress how strongly I would recommend not doing this) would be to duplicate the text a few times and put lots of spaces between it. That would simulate the effect you're trying to achieve using only the marquee tag.

However, that should be an absolute last resort. You are almost certainly better off using JavaScript to do this. It's easier to customise, and will work in all browsers.

Here's some customisable JavaScript: http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm or you can use a jQuery plugin like http://remysharp.com/demo/marquee.html.

这篇关于&LT;选取框&GT;标记,立即显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆