3

我想做这样的事情:

  $('.UofTennesseeKnox').popover({
    'selector': '',
    'placement': 'bottom',
    'title': '<a href="home.html">University of Tennessee-Knoxville</a>',
    'content': 'Facilities Services Department 2233 Volunteer Boulevard, Room 203 Knoxville, TN 37996-3010',
  });

但 'title' 的整个值出现在页面上,包括标签。有没有一种简单的方法可以做到这一点,还是我需要使用不同的弹出框脚本?

4

1 回答 1

5
      $('.UofTennesseeKnox').popover({
        'selector': '',
        'placement': 'bottom',
        'title': '<a href="home.html">University of Tennessee-Knoxville</a>',
        'content': 'Facilities Services Department 2233 Volunteer Boulevard, Room 203 Knoxville, TN 37996-3010',
        'html': 'true'
      });

呃……

于 2013-02-04T23:19:19.460 回答