6

qTip の先端サイズ (x,y) の変更に問題があります。style: { tip: { x:2,y:2 } }あらゆる方法でを追加しようとしましたが、失敗しました。

次のスクリプトに追加するにはどうすればよいですか?

  // Status Tooltips Style
  $.fn.qtip.styles.statusTooltips = {
    background: '#333333',
    color: 'white',
    textAlign: 'center',
    border: {
      width: 1,
      radius: 5,
      color: '#333333'
    },
    tip: 'leftMiddle',
    name: 'dark'
  }

  // Status Tooltips Init
  $('.status[title]').qtip({
    style: 'statusTooltips',
    position: {
      corner: {
         target: 'rightMiddle',
         tooltip: 'leftBottom'
      }
    }
  });
4

3 に答える 3

10

それは十分に簡単です:

$("#mytip").qtip({style: { tip: { size: { x: 10, y: 10}} }});

http://craigsworks.com/projects/qtip/docs/tutorials/#tips

于 2010-07-06T07:43:33.157 に答える
4

qtip 2 では、オブジェクトのプロパティwidthheightプロパティを設定するだけです:tip

$("#mytip").qtip({
    style: {
        tip: {
            width: 10,
            height: 10
        }
    }
});

http://qtip2.com/plugins#tips.widthを参照してください

于 2013-10-02T15:42:54.643 に答える
-6

とった!

  $('.status[タイトル]').qtip({
    スタイル: {背景:'#333333',
      色:「白」、
      textAlign:'center',
      境界:{幅: 1、半径: 5、色: '#333333'}、
      tip:{corner:'leftMiddle',size: { x:6,y:10 }}
    }、
    position: {corner: {target:'rightMiddle',tooltip:'leftBottom'}}
  });

ありがとう、StackOverflow、時折ゴム製のアヒルになってくれて:)

于 2010-07-06T07:57:50.737 に答える