1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

求助

本帖由 guduhanyang2008-03-01 发布。版面名称:新人报道

  1. guduhanyang

    guduhanyang New Member

    注册:
    2008-02-28
    帖子:
    2
    赞:
    0
    <html><head><title>css</title><style type="text/css">
    #up {background-color:red;width:100px;height:100px;float:left;}
    #down {background-color:red;width:100px;height:100px;clear:left;margin-top:10px;float:left;}

    #right {background-color:red;width:100px;height:210px;float:left;margin-left:10px;}
    </style>
    </head>
    <body>

    <div id="up"></div>




    <div id="down"></div>


    <div id="right"></div>

    </body>
    </html>


    以上代码是在ie 7里面可以正常显示,但在ff里就显得不正常了,应该怎么改啊!
     
    #1 guduhanyang, 2008-03-01
    最后编辑: 2008-03-03
  2. laogui

    laogui Administrator
    管理成员

    注册:
    2005-08-30
    帖子:
    15,216
    赞:
    35
    加个left层吧
    HTML:
    <html><head><title>css</title><style type="text/css">
    #left {float:left;}
    #up {background-color:red;width:100px;height:100px;float:left;}
    #down {background-color:red;width:100px;height:100px;clear:left;margin-top:10px;float:left;}
    #right {background-color:red;width:100px;height:210px;float:left;margin-left:10px;}
    </style>
    </head>
    <body>
    
    <div id="left">
    <div id="up"></div>
    <div id="down"></div>
    </div>
    
    
    <div id="right"></div>
    
    </body>
    </html>
    
     
  3. wuhao

    wuhao New Member

    注册:
    2006-05-23
    帖子:
    265
    赞:
    0
    123123