ie下的问题 , 当span要填充背景色或者字体才能触发问题, 是一个bug吗?

.maskContainer{
width:100%;
height:100%;
position:fixed;
left:0;
top:0;
z-index:11111111111111;
background:rgba(0,0,0,0.75);
}
.maskImage{
position:absolute;
left:0;right:0;top:0;bottom:0;
width:730px;
height:390px;
margin:auto;
}
.maskImage>span{
position:absolute;
right:0;
top:0;
width:45px;
height:40px;
cursor:pointer;
border:1pxsolidred;
}
getSkinUrl('images/maskImg.jpg')?>"width='730'height='390'alt='婚礼购'/>
$(document).ready(function(){
jQuery('.maskImagespan').click(function(){
jQuery('.maskContainer').hide('slow');
returnfalse;
});
});
蝴蝶刀刀
浏览 423回答 2
2回答

茅侃侃

这个不是块级元素的问题,因为position:absolute;已经把span变成块级元素了,IE下也如此。问题就是当这个块级元素是透明的时候在IE8及以下无法触发各种事件,这应该是个bug,这里是解决办法
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript