【发布时间】:2013-06-18 15:11:29
【问题描述】:
这对工具提示有效吗?出于某种原因,我认为在标题字段中添加 div 无效。
<div class="graph_item tooltip" title="
<div id='tooltip_inner_container'>
<div id='title'>Ready Set Cook!</div>
<strong>250 HEALTHY POINTS</strong>
The Goal of Ready, Set, Cook! is to cook and log at least 1 recipe per week for 8 weeks. If you complete this challenge, You will
become eligible for prizes.<br /><br />
Registration:
May 7 - May 14<br />
Duration: May 15 - June 6
</div>
" style="width:100%; height:58px; left:0%; top:0%; background-color:#0073ad; background-image:url(images/a.jpg);">
【问题讨论】:
-
为什么不允许?
-
您可以这样做,但不要期望 html 会在显示标题文本的小弹出窗口中呈现。
-
它不会做你可能希望它做的事——它不会显示为
div。它只会将整个块作为文本。见this jsFiddle。 -
如果你想证明
div,你可以使用onmouseover。