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>
我真的不知道吗?
在此先感谢。
将代码减少到[最小,完整的可验证示例](http://stackoverflow.com/help/mcve/),并在您的问题中发布该代码。不要指望我们绕过互联网来帮助你。 – 2014-11-05 19:06:49