【发布时间】:2015-11-29 02:23:46
【问题描述】:
下面是代码示例:
<p>Bob's <dfn title="Dog">canine</dfn> mother and <dfn title="Horse">equine</dfn> father sat him down and carefully explained that he was an <dfn title="A mutation that combines two or more sets of chromosomes from different species">allopolyploid</dfn> organism.</p>
如果用户将鼠标悬停在 canine、 equine 或 allopolyploid(我使用的标题)上,我该怎么做然后可以向用户显示 dfn 标题,以便他知道每个更难的单词的含义?
【问题讨论】:
-
它已经在悬停时显示标题
-
为此制作
tooltip -
一定是我的浏览器出现了故障,我在另一个浏览器上加载了它,现在它可以工作了。你知道如何让悬停更漂亮吗?比如它可能会显示红色边框或类似的东西,那会是在 css 中吗?
-
检查 qTip 一个不错的工具提示插件。
-
@EdwardK.:如果您可以编辑您的问题以添加您在上面的评论中提到的新要求,那就更好了。就目前而言,目前的答案似乎并没有真正回答您的问题。