2011-10-12 15 views

回答

0

在我們的項目,我們也使用qTip和強制使用兒童來代替Title屬性的內容。兒童內容默認隱藏(CSS - > display:none;)

$('.tipped').each(function() 
{ 
    $elem = $(this); 
    $elem .qtip({ 
     content: $elem.children('.tiptext').html(), 
     show: 'mouseover', 
     hide: 'mouseout', 
     position: { 
      corner: { 
       target: 'bottomMiddle', 
       tooltip: 'topMiddle' 
      } 
     }, 
     style: { 
      tip: true, 
      name: 'blue', 
      color: '#A04242', 
      background: '#EEEEEE', 
      border: { 
       width: 1, 
       radius: 3, 
       color: '#4F81BD' 
      } 
     } 
    }); 
}); 
+0

感謝它的作用就像一個魅力;) – Kenci

相關問題