#box li.first div {
position:absolute;
top:0;
left:0;
width:156px;
height:156px;
display:none;
opacity:0.5;
filter:alpha(opacity=50);
background:#fff url(img/loading.gif) 50% 50% no-repeat;
}
这个CSS规则说明作者把这个DIV当做加载提示,如果图片没有加载完,这个DIV就显示,加载完成就藏起来。
调试欢乐多
img.complete ? oDiv.style.display = "none" : (oImg[0].onload = function() {oDiv.style.display = "none"})</span> 这个<span>标签不会报错??