<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
嵌套DIV测试
</title>
<style>
.a {position:absolute;heigh:150px;width:550px;border:1px solid red;}
.b {width:37px;height:130px;cursor:pointer;border:1px solid Black;}
</style>
</head>
<body>
<div class="a">aaa
<div class="b" onclick="javascript:alert('ok');"> 测试</div>
</div>
</body>
</html>高度为130的DIV——b,点击文字可以,空白区域就无法点击,这是为何??
火狐下就能正常点击,但是IE6下就不行
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
嵌套DIV测试
</title>
<style>
.a {position:absolute;heigh:150px;width:550px;border:1px solid red;}
.b {width:37px;height:130px;cursor:pointer;border:1px solid Black;}
</style>
</head>
<body>
<div class="a">aaa
<div class="b" onclick="javascript:alert('ok');"> 测试</div>
</div>
</body>
</html>高度为130的DIV——b,点击文字可以,空白区域就无法点击,这是为何??
火狐下就能正常点击,但是IE6下就不行
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货