我有一个透明的 div 元素,它在同一页上比一个 img 元素具有更高的 z-index 值。但是 Internet Explorer 表现得好像点击事件时 img 元素具有更高的 z 值。
<!DOCTYPE html>
<html>
<head>
<title>Demo</title>
</head>
<body style="margin:0;padding:0;">
<img src="7player.png" alt="7player" width="60" height="60" style="position:absolute; left: 100px; top: 100px; z-index:10" />
<div style="width:100%;height:100%;position:absolute;z-index:900;" onclick="alert('hello');"></div>
</body>
</html>
点击图片时没有任何反应,尽管 div 元素的单击事件应该被触发(例如,在 Chrome 中有效)。
是否有任何解决方法或修复方法可以解决我的问题?
background: white\9; filter:alpha(opacity=1)\9;
- method