【发布时间】:2011-04-10 15:27:59
【问题描述】:
<div style="width: 100px; height: 25px; position: relative;">
<input type="button" style="width: 100px; height: 25px;" onclick="alert(1);" value="Input"/>
<div style="top: 0px; left: 0px; bottom: 0px; right: 0px; position: absolute; background-color: #000000; opacity: 0.3;"></div>
</div>
<br/>
<div style="width: 100px; height: 25px; position: relative;">
<button style="width: 100px; height: 25px;" onclick="alert(1);">Button</button>
<div style="top: 0px; left: 0px; bottom: 0px; right: 0px; position: absolute; background-color: #000000; opacity: 0.3;"></div>
</div>
当我在 Opera 11.01 中单击第一个按钮 () 时,没有按下按钮,因为下一个
与 重叠。但是,如果我单击第二个按钮(
【问题讨论】:
-
在 Chrome 12 Dev 上,我没有收到任何
alert()消息。
标签: javascript button opera