1

我做了一个JSFiddle来展示这个问题;我在 JSFiddle 资源区为我的网页添加了所有的 JavaScript 和 CSS 文件。这是来自 JSFiddle 的 HTML:

<div class="date" title="Deadline for enrollment is 6 hours prior<br/>Session starts at 7/27/13 12:00 PM">2013/07/27<br/>12:00-12:50</div>
<div class="fqEntity" title="Slot #30 <b>Confirmed</b> <ol style='text-align: left'><li>Why can't we breathe CO2, like plants?</li><li>Why are these questions so silly?</li><li>What if we eat lots of chlorophyll?</li><li>Can't we just implant rebreathers?</li><li>What if we genetically engineered our skin to include chloroplasts?</li><li>Do you think green skin would be considered sexy?</li><li>Would short people be called 'little green men'?</li></ol>">course_ooCompat<br/>lecture_IDEA</div>

这是来自 JSFiddle 的 JavaScript:

$(function() {
  $('*').tooltip( { 
    html: true, 
    placement: bottom 
  } )
});
4

1 回答 1

1

放置选项的值应该是一个字符串(或函数),所以在它周围加上引号:

$(function () {
    $('*').tooltip({
        html: true,
        placement: 'bottom'
    })
});
于 2013-07-27T21:06:51.287 回答