为什么在互联网探索者7-8中将 Java印成本? 我试图做到的是,通过利用“Qu”来按班名称选择DIVs,把多个DIVs的点击事件连在一起。
该公司在Petherine、Khate Sato。 在电离层电离层电离层电离层电离层电离层中,电离层电离层电离层电离层电离层电离层电离层电离层电离层的电离层电离层电离层,电离层电离层电离层电离层电离层电离层。 无法在IEC 7或8工作。
<!DOCTYPE html>
<head>
<title>IE Click Target Test</title>
</head>
<body>
<div class="ClickTarget">Button 1</div>
<div class="ClickTarget">Button 2</div>
<!-- load jQuery 1.6.4 from CDN -->
<script type="application/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="application/javascript">
// This works fine in all browsers except IE pre-9.
$(document).ready(function () {
$(".ClickTarget").click(function () {
alert("If you can see me, it worked!");
});
});
</script>
</body>
</html>
- Normal disclaimers: I wouldn t HAVE to use jQuery for this example, but it illustrates a problem I am having with a larger solution that does use jQuery 1.6.4. IE is often quirky, I ve had to deal with it many years, but that s life.
出于某种原因,或许是即将到来的假日,我对一些事情视而不见。 有什么想法,为什么我无法在IE中登记点击?