2014-11-05 100 views
-1

on my site当你进入主菜单并将鼠标悬停在'Populaire boeken'上。前2个菜单项正在工作,鼠标悬停时出现图像。但是,如果您仔细观察,图像周围有灰色边框?如何获得它的利益?我尝试了一切。 border:none; border:0; outline:none图像周围奇怪的灰色边框?

的图像显示与此jQuery函数:

<script type='text/javascript'> 

     jQuery(document).ready(function(){ 
      jQuery('.level1 li').mouseover(function(){ 
       $this = jQuery(this); 
       if(typeof $this.find('img').attr('src') != "undefined"){ 
        $this.parent().parent().parent().find('.imageChangeDefault').css('background','url('+$this.find('img').attr('src')+')').css('background-repeat','no-repeat').css('width','inherit').css('height','inherit').css('background-size','100% 100%'); 
       } 
      }); 
     }) 

    </script> 

我真的不知道吗?

在此先感谢。

+0

将代码减少到[最小,完整的可验证示例](http://stackoverflow.com/help/mcve/),并在您的问题中发布该代码。不要指望我们绕过互联网来帮助你。 – 2014-11-05 19:06:49

回答

0

我可以看到有2个javascript/jquery错误。这很可能是问题所在。

但我们需要代码来帮助你。

希望这对你有所帮助。

+0

我用我的jQuery函数更新我的问题。谢谢 – Meez 2014-11-05 22:56:51

0

虽然我不确定是什么导致你的问题,我看看你的网站。在你的imageBox div上,你可以设置'overflow:hidden'并在img本身上使用'margin:-1px;'

这将有助于隐藏您的线条,但不会摆脱它们。我怀疑你可能想要做更多的窥探并发现其来源。