父元素浮動後子元素部分換行解決辦法

<div class="more">
    <div class="wbt">
        <a href="#">1</a>
        <a href="#">2</a>
        <a href="#">3</a>
    </div>
    <a href="#">更多»</a>
</div>
            .more{
                float: right;
                font-size: 12px;
                
                a{
                    color: #737373;
                }
                
                .wbt{
                    margin-right: 15px;
                    a{
                        background: #D1D1D1;
                        text-indent: -9999px;
                        width: 8px;
                        height: 8px;
                        float: left;
                        margin: 5px;
                        
                    }
                }
            }

.wbt{
    float:right;
    }

ORcss

.wbt{
    display:inline;
    }
相關文章
相關標籤/搜索