_index.css 2.38 KB
.product_material {
    width: 1200px;
    margin: auto;
    h1 {
        font-size: 30px;
        margin: 15px 0 50px;
        text-align: center;
    }
    /*过滤*/
    .line {
        width: 1200px;
        margin: 10px auto;
    }
    .sel {
        width: 150px;
        vertical-align: middle;
    }
    label,
    a {
        vertical-align: middle;
    }
    /*品牌*/
    #brand {
        position: relative;
        label {
            cursor: pointer
        }
        #brand_container {
            position: absolute;
            width: 1200px;
            background: #ccc;
            z-index: 1;
            display: none;
            .nav {
                overflow: hidden;
                span {
                    display: inline-block;
                    width: 25%;
                    text-align: center;
                    height: 30px;
                    line-height: 30px;
                    cursor: pointer;
                    float: left;
                }
                .focus {
                    background: #eee;
                }
            }
            .title {
                padding: 5px 0;
                background: #555;
                color: #fff;
                text-align: center;
            }
            .content {
                background: #fff;
            }
            .item {
                display: inline-block;
                width: 10%;
                padding: 5px 0;
                text-align: center;
                height: 20px;
                line-height: 20px;
                font-size: 12px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                &:hover {
                    background: #eee;
                    cursor: pointer;
                }
            }
        }
    }
    /*表格*/
    table {
        width: 1200px;
        margin: 20px auto;
    }
    table {
        table-layout: fixed;
        empty-cells: show;
        border-collapse: collapse;
        img {
            width: 80px;
        }
    }
    td {
        height: 30px;
    }
    .table {
        border: 1px solid #cad9ea;
        color: #666;
    }
    .table th {
        background-repeat: repeat-x;
        height: 30px;
    }
    .table td,
    .table th {
        border: 1px solid #cad9ea;
        padding: 0 1em 0;
    }
    .table tr.alter {
        background-color: #f5fafe;
    }
}