1

サイトでqTip 2.0を使用していますが、themeroller を使用してツール ヒントのスタイルを設定できると表示されています。それでも、qTipでテーマローラーをどのように使用するかについて少し混乱していますか? ページにチュートリアルがありますが、Themeroller のセクションは空白です。

私が立ち往生しているので、誰でもこれを手伝ってもらえますか。

ここに私のqTipコードがあります:

<script type="text/javascript">
var $j = jQuery.noConflict();
$j('.tool').qtip({
   content: 'Tool Tip Text',
position: {
  my: 'bottom left', 
  at: 'top left', 
  target: $j('.tool') 
  },
  style: {
  classes: 
  'ui-tooltip-tipsy' /*This is a style that comes with qTip 2.0 - I want to     
                       replace with a themeroller style.*/
}
});
</script>
4

1 に答える 1

4
    style: {
        classes: 'ui-tooltip-shadow', // Optional shadow...
        tip: 'top center', // Tips work nicely with the styles too!

        /*
         * The important part: style.widget property

         * This tells qTip to apply the ui-widget classes to
         * the main, titlebar and content elements of the qTip.
         * Otherwise they won't be applied and ThemeRoller styles
         * won't effect this particular tooltip.
         */
        widget: true
    }

追加する必要があります:)

于 2011-09-08T23:22:45.337 に答える