代码如:
<html>
<head>
<style type="text/css">
img
{
position:absolute;
left:0px;
top:0px;
z-index:-10000;
}
</style>
</head><body>
<div style="width:100px;height:200px;border:1px solid red;">This is a heading</div>
<img src="/i/eg_smile.gif" onclick="alert(23)"/>
<p>由于图像的 z-index 是 -1,因此它在文本的后面出现。</p>
</body>
</html>
IE10下还会弹出23,谷歌不会
<html>
<head>
<style type="text/css">
img
{
position:absolute;
left:0px;
top:0px;
z-index:-10000;
}
</style>
</head><body>
<div style="width:100px;height:200px;border:1px solid red;">This is a heading</div>
<img src="/i/eg_smile.gif" onclick="alert(23)"/>
<p>由于图像的 z-index 是 -1,因此它在文本的后面出现。</p>
</body>
</html>
IE10下还会弹出23,谷歌不会
easyui datebox设置日期范围
Web前端开发
加上
html,body { height: 100px;margin: 0;}
background-color: rgba(0,0,0,0);