Web工具提示“普遍接受”换行符? [英] Web Tooltip "universally accepted" linebreak character?
本文介绍了Web工具提示“普遍接受”换行符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用\\\
在web工具提示中创建换行符。这适用于IE和Chrome。但是Firefox忽略它。
通用工具提示中的换行符是什么?谢谢。
/www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#the-title-attribute\">HTML5 使用title属性。现在Firefox 12支持它。试试这个: < span title =第一行&#10;第二行>测试< / span>
坏消息:Firefox并没有换行符。这实际上是一个非标准的html扩展,也就是MSIE中的一个bug,可能会导致某些页面出现问题。
请参阅这个问题在Firefox的问题跟踪器。
I use \n to create a linebreak in web tooltip. This works in IE and in Chrome. But Firefox ignores it.
What will work universally as linebreak character in tooltip? Thanks.
解决方案
Update: This has been cleared up in HTML5 using the title attribute. Now Firefox 12 supports it. Try this:
<span title="First line Second line">Test</span>
Bad news: Firefox does not line break tooltips. This is actually a non-standard html extension, ie a bug in MSIE that may cause problem with certain pages.
See this bug on the firefox issue tracker.
这篇关于Web工具提示“普遍接受”换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文