1

Jquery qtip プラグインに問題があります。

Firefox では正常に動作します (ここを参照してください http://movieo.no-ip.org/最初の画像にカーソルを合わせます)。

しかし、IEでは機能しません。これはコードです:

$('.moviebox').each(function() {
   $(this).qtip({
      content: $(this).children('.info'),
      show: 'mouseover',
      hide: 'mouseout',

      style: { name: 'light' },
      position: {
         corner: {
            target: 'rightbottom',
            tooltip: 'bottomleft'
         }
      }
   });
});

そして、html

<!--start moviebox-->
  <div class="moviebox">
  <a href="#">
  <img src="http://1.bp.blogspot.com/_mySxtRcQIag/S6deHcoChaI/AAAAAAAAObc/Z1Xg3aB_wkU/s200/rising_sun.jpg" />
  </a>
  <!--start infobox-->
    <div class="info">
  <span>Rising Sun (2006)</span>
  <div class="description"><strong>Description:</strong><br /> test test  test test test  test test test  test test test  test test test  test test</div>
  <img src="http://1.bp.blogspot.com/_mySxtRcQIag/S6deHcoChaI/AAAAAAAAObc/Z1Xg3aB_wkU/s200/rising_sun.jpg" /> 
<div class="cast"><strong>Cast:</strong><br /> Sean connery</div>
  <div class="rating"><strong>Rating:</strong><br />5stars</div>
  </div>
  <!--end infobox-->
  </div>
  <!--end moviebox-->

なぜそれが IE で機能しないのですか????? 私を殴る。ソース全体については、movieo.no-ip.org をチェックしてください。

4

2 に答える 2

4

以下を使用してみてください。

$('.moviebox').each(function() {
   $(this).qtip({
      content: $(this).find('.info'),
      show: 'mouseover',
      hide: 'mouseout',

      style: { name: 'light' },
      position: {
         corner: {
            target: 'rightbottom',
            tooltip: 'bottomleft'
         }
      }
   });
});

IE では、.info は .movi​​ebox の直接の子孫ではありません。

于 2010-03-23T15:33:15.287 に答える
0

あなたは付け加えられます

<meta http-equiv="X-UA-Compatible" content="IE=Edge">

IEの場合、それは機能します。

于 2013-09-25T04:38:52.837 に答える