我对创建弹出文本的了解有限,包括(如果是图像): <img src="\images\image1.png" alt="" title="hover text" /> 但当悬停在文本上时,我更喜欢弹出框,例如: <p><dfntitle="HyperText Markup Language">HTML</dfn> is the standard markup language for creat
</p>由于内容(文章文本和术语表术语描述)来自允许用户使用HTML的CMS,术语的描述可能包含HTML,例如Another word for <strong>thesaurus</strong>像<strong>这样的HTML标记是内联元素,不会造成问题。当然,人们可能会考虑添加类似dfn span p { display: inline-block; }的东西,但这也不起作用(inline也不起作用),它是无效的HTML5。&l
因此,我们的代码首先找到“人工设计系统”,然后用一个<dfn>标记包装它,然后在其中找到“设计”,然后用一个<dfn>标记包装它。这是我们现在使用的代码:
//Definition of variables, please not that ~open~ is replaced by <dfn> and ~close~ is replacedHuman Test <dfn>Design</dfn<
下面是代码的一个示例:<p>Bob's <dfn title="Dog">canine</dfn> mother and <dfn title="Horse">equine</dfn> fathersat him down and carefully explained that he was an <dfn title="A mutat