0
http://jsfiddle.net/Y5MRL/ 我使用jquery在用户点击透明div时弹出一个图像。图像应该是超链接到一个url。但图像弹出后没有超链接。问题是什么?Jquery代码禁用图像上的超链接?
HTML
<a href="https://www.google.com/"><img id="enterout4" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSRDwuNVz5koLf3uGVSWt_otiZsKwCVAQK8gb0ppY3GFULHEU0C2w"></a>
jQuery的
$('#enter4').mouseenter(function(){
$('#enterout4').fadeIn('slow');
$('#enterout4').width($(window).width()/4.6);
console.log();
});
$('#enter4').mouseleave(function(){
$('#enterout4').fadeOut('slow');
});
CSS:
#enter4{
position: absolute;
z-index: 9999;
width: 300px;
height: 100px;
top: 0%;
left: 0%;
opacity: 0;
}
#enterout4{
position: absolute;
top: 0%;
left: 0%;
z-index: 9998;
display: none;
height:auto;
}
这里是例子 http://jsfiddle.net/Y5MRL/
哪里是'#enter4',以及为什么使用'jQuery的1.9.1','迁移1.1.0' 'jQuery UI的1.9.2','jQuery Mobile的1.3.0b1'和'jQuery Mobile的1.2。 0'在同一时间? :) – davidkonrad