flotat为什么没有效果

来源:3-3 企业网站制作之页面头部制作(二)

阿兰十一

2018-04-05 17:07

我的float 没有效果,操作不知道哪出了问题

写回答 关注

4回答

  • 慕瓜1382147
    2018-07-23 15:28:11

    浮动不了


  • 慕瓜1382147
    2018-07-23 15:25:32

    *

    {

    margin: 0;

    padding: 0

    font-size:12px;

    }

    boby

    {

    background-color:#F5F5F5;

    }

    .top

    {

    width:100%;

    height:27px;

    background: url(../img/top_bg.jpg) repeat-x;

    }

    .top_content

    {

    width: 1000px;

    margin: 0 auto;

    }

    .top_content li

    {

    list-style-image: url(../img/li_bg.gif);

    float: right;

    width: 70px;

    line-height: 27px;

    }

    .top_content a:link,.top_content a:visited

    {

    color: #8E8E8E;

    text-decoration: none;

    }

    .top_content a:hover,.top_content a:active

    {

    color: darkred;

    text-decoration: none;

    }

    .wrap

    {

    width: 1000px;

    margin: 0 auto;

    background-color: ghostwhite;

    }

    .logo

    {

    height: 80px;

    }

    .logo_left

    {

    width: 200px;

    float: right;

    }

    .logo_right

    {

    width: 300px;

    float: left;

    }


  • 慕斯卡0234191
    2018-05-01 13:06:30

    注意宽高

  • 慕容7044008
    2018-04-05 19:46:26

    代码呢?

企业网站综合布局实战

本课程重点介绍HTML/CSS实现常见企业网站布局的方法

157017 学习 · 1984 问题

查看课程

相似问题