移动端购物车商品分类页面通用方案




    
        
        分类
        
        
        
        
        
        
        
    

    
        
        

css:

.menu-left, .menu-right {
    position: fixed;
    left: 0;
    top: 0.88rem;
    bottom: 0;
    overflow-y: scroll;
    background-color: #FFFFFF;
}

ul {
    list-style: none;
}

/*.r-line:before {
    content: " ";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    border-right: 1px solid rgba(207, 207, 207, 0.95);
    color: rgba(207, 207, 207, 0.95);
    -webkit-transform-origin: 100% 0;
    transform-origin: 100% 0;
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
}*/

.menu-left ul li.active {
    /*border-left: 2px solid #f86b0b;*/
    background-color: #d9c295;
    color: #FFFFFF;
}

.menu-left ul li.active {
    /*background: #fff;*/
    position: relative;
}
.menu-left ul li {
    padding: 0.3rem 0;
    box-sizing: border-box;
    font-size: 14px;
    width: 1.6rem;
    height: 1rem;
    text-align: center;
}
.menu-left ul li:last-child{
    margin-bottom: 1.5rem;
}

.menu-left ul li.active:before {
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 1px;
    border-top: 1px solid rgba(207, 207, 207, 0.95);
    color: rgba(207, 207, 207, 0.95);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: scaleY(0.501);
    transform: scaleY(0.501);
}

.menu-left ul li.active:after {
    content: " ";
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 1px;
    border-bottom: 1px solid rgba(207, 207, 207, 0.95);
    color: rgba(207, 207, 207, 0.95);
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%;
    -webkit-transform: scaleY(0.501);
    transform: scaleY(0.501);
}

.menu-right {
    background: #f7f7f7;
    position: inherit;
    margin-left: 1.6rem;
    margin-top: 0.88rem;
    right: 0;
    bottom: 0;
    left: 1.6rem;
}

.menu-right h5:first-child {
    margin-top: 0;
    padding-left: 15px;
}
.menu-right h5 {
    font-size: 14px;
    color: #666;
    margin-top: 1rem;
    margin-bottom: .4rem;
    font-weight: normal;
}

.menu-right ul {
    overflow: hidden;
}

.w-3:nth-child(3n+1) {
    width: 90%;
    padding-left: 0;
    /*padding-right: 5px;*/
    background-color: #FFFFFF;
    margin: 0.3rem 5% 0 5%;
}

.w-3:nth-child(3n+1) {
    padding-left: 0;
    padding-right: 0;
}
.menu-right ul li {
    text-align: right;
    padding-bottom: 0;
    border-radius: 6px;
}
.menu-right ul li:last-child{
    margin-bottom: 1.5rem;
}
.w-3 {
    width: 90%;
    height: 1.6rem;
    float: left;
    /*padding: .6rem .4rem;*/
    box-sizing: border-box;
    position: relative;
    background-color: #FFFFFF;
    left: 0;
    right: 0;
    margin: 0.3rem 5% 0 5%;
    /*text-align: right;*/
}

.menu-right ul li:nth-child(3n+1) a {
    /*left: 0;
    right: .7rem;*/
}
.menu-right ul li a {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    font-size: 0;
}
a {
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    color: #646464;
}

.menu-right ul li img {
    /*width: 3rem;*/
    height: 100%;
}

img {
    border: 0;
}

.menu-right ul li span {
    position: absolute;
    display: inline-block;
    color: #666;
    left: 0.8rem;
    top: 0.6rem;
    font-size: 0.26rem;
}



/*
mytask
我的任务页面*/


.detailsTask{
    display: none;
}

.detailsTaskitems{
    border-top: 1px solid #dcdcdc;
    height: 1.64rem;
    position: relative;
}

.detailsTaskitems img{
    display: inline-block;
    width: 1.45rem;
}
.detailsTaskitems p{
    display: inline-block;
    position: absolute;
    top: 0.4rem;
    width: 3.7rem;
    color: #666666;
    font-size: 0.2rem;
}
.detailsTaskitems button{
    display: inline-block;
    position: absolute;
    top: 0.5rem;
    right: 0.2rem;
    width: 1.4rem;
    height: 0.55rem;
    border: 1px solid #d9c295;
    color: #d9c295;
    border-radius: 50px;
    padding: 0.04rem 0 0 0;
    font-size: 0.22rem;
}
.task-title .title{
    font-size:0.26rem;
    color: #333333;
    padding-left: 0.2rem;
    padding-top: 0.1rem;
    display: inline-block;
    overflow: hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    word-break:keep-all;
    width: 6.8rem;
    line-height: 0.4rem;
    margin-bottom: 0.4rem;
}

/*向上箭头*/
.taskList .arrowonThe{
    display: block;
    margin: 0.2rem auto;
    width: 0.33rem;
    height: 0.3rem;
}

 

你可能感兴趣的:(css,html)