0

ユーザーが他の場所をクリックするか、ツールチップに関連付けられた別のアンカーの上にマウスを移動するまで、またはそうでない限り、特定の時間、ツールチップを「持続」させようとしています..

基本的に、表示されるツールチップは「スクロール可能」になるため、ユーザーはスクロールできる必要があります...

$(this).qtip({  content: {
              text: 'wait.....',
              url: '<?php echo site_url('welcome/get_event_tooltip');?>',
              data: { id: tripID},
              method: 'post'


         },style: { 
      width: 300,
      height:135,
      padding: 5,
      //background: '#A2D959',
      color: 'black',
      overflow:'auto',
      textAlign: 'center',
      border: {
         width: 7,
         radius: 5
       //  color: '#A2D959'
      },
      tip: true,
      solo: true,
    show: { ready: true, delay: 0 },
  hide: {
        fixed: true,
        when: {
            event: 'unfocus'
        }
    },
      name: 'green' // Inherit the rest of the attributes from the preset dark style
   }
            });
4

1 に答える 1

0

ページでヒントをスクロールするには、次を設定できます。

position: {
    adjust: { 
        scroll: true
    },

ヒントがフォーカスを失ったときにすでにヒントを閉じているため、他の唯一のことは、ヒントのタイミングを合わせて閉じることです。これを行う私の考えはshow、タイマーを設定してqtipの終了をトリガーできる場合です。

        events: {

            }, //render
            show: function () {
            //setup timer to close qtip......
于 2013-03-08T15:08:35.100 に答える