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