问答详情
源自:4-3 menu

为什么我这个不往右边挤了了呢

http://img.mukewang.com/5777e1590001363e13620678.jpg

.index-menu{ 

    position:relative;

    border-top:4px solid #f34949;

}

.index-menu-pt{

margin-bottom:80px;

position:relative;

margin-left: auto;

    margin-right: auto;

width:155px;

height:75px;

background:url(../img/menu.png) no-repeat;

text-align:center;

line-height:65px;

color:#fff;

font-size:20px;

}

.menu-list{ 

margin:-top:150px; 

overflow:hidden;

color:#555;

}

.index-menu .menu-list ul{

}

.index-menu .menu-item{

width:520px;

float:left;

margin-right:60px;

margin-bottom:56px;

}

.index-menu .title{ 

color:#555;

float:left;

overflow:hidden;

white-space:nowrap;

text-overflow:ellipsis;

}

.line{

float:left;

width:192px;

border-top:1px solid #e3e1e1;

margin-top:10px;

}

.price{

float:right;

}

.common{ 

margin-top:10px;

font-size:12px;

}

.menu-list{

height:400px;

}

.pull-right{

float:right;

}

http://img.mukewang.com/5777e1b00001a05a06540489.jpg

提问者:kit1 2016-07-02 23:46

个回答

  • CM1900
    2016-07-02 23:59:18
    已采纳

    .index-menu .menu-list ul{

        width:1160px;

    }

    将ul的宽度多设置60px;