免费注册 查看新帖 |

Chinaunix

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

[css]css高手看一下,我的这个代码有什么问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-05 11:38 |只看该作者 |倒序浏览
<html>
<head>
        <style type='text/css'>
                #one {positon:relative;width:780px;height:400px;background-color:#000000;margin:30px auto 0px;}
                #two {positon:relative;width:400px;height:30px;background-color:#ffffff;margin:30px auto 0px;font-size:1em;font-weight:bold;font-family:Arial;}       
                #three {positon:relative;width:400px;height:30px;background-color:#ffffff;margin:30px auto 0px;}       
        </style>
</head>
<body bgcolor='#cdcdcd' style='text-align:center;margin:0px;padding:0px;' >
        <div id='one'>
               
                <div id='two'>
                        two
                </div>
                <div id='three'>
                        three
                </div>
        </div>
</body>
</html>


这个是一个简单的demo,很疑惑,ie和firefox看出来不一样,怎样才能让firefox中“two”的
上面有一段距离呢,谢谢

论坛徽章:
0
2 [报告]
发表于 2006-01-05 11:58 |只看该作者
多看一些css hack相关的文章

提示: 可以用 !important

论坛徽章:
0
3 [报告]
发表于 2006-01-05 12:04 |只看该作者
不行啊,详细一点啊,光说不做。用import 没用阿,还是一样啊。

论坛徽章:
0
4 [报告]
发表于 2006-01-05 18:13 |只看该作者
大家帮帮忙啊,谢谢啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP