2011-06-30 58 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索引。这将修复问题