免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3386 | 回复: 2
打印 上一主题 下一主题

奇怪html,IE 6 的absolute定位的bug,测试过IE 7 IE8 FF oper safari 没有这 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-25 09:57 |只看该作者 |倒序浏览
奇怪html,IE 6 的absolute定位的bug,测试过IE 7 IE8 FF oper safari 没有这
奇怪的html问题,应该是IE 6的绝对定位的bug, 我自己测试过,IE 7,IE8,FF,oper,safari 都没有这个问题。。。





<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sam</title>
</head>
<style>


#body_top {
        position:absolute;
        font-size: 1.2em;
        width: 100%;
        height: 35px;
        color: #74B0D0;
        top:155px;
        left:0px;
        border:1px red solid;
}

#body_main {
        position:absolute;
        top: 35px;
        left: 20px;
        width:1200px;
        height:834px;
        border:1px red solid;
}

.game_center_right{
        position:absolute;
        width:730px;
        height:420px;
        background-color:#e7decd;
        top:6px;
        left:245px;
        border:1px blue solid;
}
.game_center_left{
        position:absolute;
        width:225px;
        height:420px;
        top:6px;
        left:6px;
        border:1px blue solid;
}


</style>
<body>


<div id="body_top">asdasd</div>

<div id="body_main" >
            <div style="" class="game_center_left">13465</div>
                <div class="game_center_right">3333344444</div>
</div>

</body>
</html>


大家可以试验一下,当选中3333344444的时候 13465也会被自动选中。----------  x 现象

另外,改变 body_main 的position 的属性的时候,x 现象会消失,但是实际的处理里面,并不允许我去把        
position:absolute;
改为
position: relative;
或者太大的移动位置。
也不允许我对某个div的增减、、、

据分析是IE 6的绝对定位的bug,--------- 我自己测试过,IE 7,IE8,FF,oper,safari 都没有这个问题。。。

现在想的是如何去巧妙的处理这个bug( x 现象)。


[ 本帖最后由 je1024 于 2008-12-25 10:31 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-12-25 14:48 |只看该作者
无人回答,好失落、、、

论坛徽章:
0
3 [报告]
发表于 2009-01-09 22:35 |只看该作者
推荐LZ去http://bbs.yuyadong.com/ 里看看吧,那里才是CSS的天堂~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP