< blink>标签 [英] <blink> tag in Internet Explorer
问题描述
< blink>
标签和 text-decoration:blink;
Internet Explorer。
有没有任何技巧可以在IE中使文字闪烁?
但是你可以用JS / jQuery做到这一点:
setInterval(jQuery('。blinking')toggle,1500);
每隔1.5秒就会显示/隐藏闪烁的类别。
所以在HTML中你会这样做:
< span class =blinking ; hello!< / span>
但是,请再仔细考虑一下是否应该闪烁!
如果你需要一些特别吸引用户的注意力(无论什么原因,正常的强调/突出/等等都不够好),那么代替开 - 关闪烁(其中文本消失一半时间),请考虑更改颜色或闪烁的下划线/边框或类似内容。
关键的是,如果某些内容足够重要,应保持可读性。
Neither the <blink>
tag nor the text-decoration:blink;
style in css are supported in Internet Explorer.
Is there any technique available for making blinking text in IE?
Avoid blinking, if possible - it annoys people.
But you can do it with JS/jQuery like this:
setInterval(jQuery('.blinking').toggle, 1500 );
That'll show/hide anything with the blinking class every 1.5 seconds.
So in the HTML you would do:
<span class="blinking">hello!</span>
But again, think very carefully about whether it should be blinking!
If you need something to specifically draw a user's attention (and for whatever reason regular emphasis/highlighting/etc isn't good enough), then instead of on-off blinking (where the text dissappears for half the time), consider changing the colour, or a blinking underline/border, or similar.
The key thing is, if something is important enough to visually annoy the user then it should remain readable.
这篇关于< blink>标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!