2011-06-30 59 views
3

我有一個奇怪的問題,在IE 7中的FB Like按鈕集成。一張圖片勝過千言萬語:http://i56.tinypic.com/140ajv9.png。如你所見,FB按鈕在下拉菜單打開時重疊,所以我想它是有z-index CSS屬性的東西。FB像IE 7中的按鈕問題

有沒有人遇到類似的東西,當然,任何人都可以給我一些建議來解決這個問題嗎?

在此先感謝。

回答

0

您是否嘗試將z-index放置在元素上?結果是什麼?另外,嘗試添加位置:相對;以及如果你沒有得到你想要的結果。

0
I had same problems with my menu, on hover it was showing the menu 
and overlaped my FB like button. 
My solution was this: 

<pre> 
<!--[if IE 7]> 
    <script type="text/javascript"> 
     $(function() {    
      $('ul.menu-list li.dir').hover(function() { 
       $('div.fb-like').css("z-index", -1); 
      }, 
      function() 
      {    
       $('div.fb-like').css("z-index", 0); 
      }); 
     });  
    </script> 
    <![endif]--> 
</pre> 

Add this on the page where the FB like button is. 
1

它是一個z指數的問題。 Facebook按鈕在按鈕上放置一個1000的z索引。因此,要修復它,請將您自己的z索引添加到您自己的div中,併爲其指定一個大於1000的z索引。這將修復問題