css实现手机端仿美团生活类app首页h5效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现手机端仿美团生活类app首页h5效果代码

代码标签: 端仿 美团 生活 app 首页 h5 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>休闲娱乐页面模板</title>
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
<style>
    html,body {
    color: #333;
    margin: 0;
    height: 100%;
    font-family: "Myriad Set Pro","Helvetica Neue",Helvetica,Arial,Verdana,sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: normal;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #000;
}

a, label, button, input, select {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

img {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
}

body {
    background: #fff;
    color: #666;
}

html, body, div, dl, dt, dd, ol, ul, li, h1, h2, h3, h4, h5, h6, p, blockquote, pre, button, fieldset, form, input, legend, textarea, th, td {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #08acee;
}

button {
    outline: 0;
}

button,input,optgroup,select,textarea {
    margin: 0;
    font: inherit;
    color: inherit;
    outline: none;
}

li {
    list-style: none;
}

a {
    color: #666;
}

.clearfix::after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
}

.clearfix {
}

.divHeight {
    width: 100%;
    height: 10px;
    background: #eeeeee;
    position: relative;
    overflow: hidden;
}

.r-line {
    position: relative;
}

.r-line:after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    height: 100%;
    border-right: 1px solid #D9D9D9;
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
    -webkit-transform-origin: 100% 0;
    transform-origin: 100% 0;
}

.b-line {
    position: relative;
}

.b-line:after {
    content: '';
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    border-bottom: 1px solid #e2e2e2;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%;
}

.aui-arrow {
    position: relative;
    padding-right: 0.8rem;
    color: #7f8699;
    font-size: 0.85rem;
}

.aui-arrow span {
    font-size: 0.8rem;
    color: #9b9b9b;
}

.aui-arrow:after {
    content: " ";
    display: inline-block;
    height: 6px;
    width: 6px;
    border-width: 2px 2px 0 0;
    border-color: #848484;
    border-style: solid;
    -webkit-transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
    transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
    position: relative;
    top: -2px;
    position: absolute;
    top: 50%;
    margin-top: -6px;
    right: 2px;
    border-radius: 1px;
}

.aui-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 15px;
    position: relative;
}

.aui-flex-box {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #333;
}

/* 蹇呰甯冨眬鏍峰紡css */
.aui-flexView {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.aui-scrollView {
    width: 100%;
    height: 100%;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding-bottom: 1px;
}

.aui-navBar {
    height: 44px;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    z-index: 102;
    background: #ffffff;
}

.aui-navBar-item {
    height: 44px;
    min-width: 15%;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 15%;
    -ms-flex: 0 0 15%;
    flex: 0 0 15%;
    padding: 0 0.9rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    color: #808080;
    position: relative;
}

.aui-navBar-item:first-child {
    -webkit-box-ordinal-group: 2;
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
    margin-right: -25%;
    font-size: 0.9rem;
    font-weight: bold;
}

.aui-navBar-item:last-child {
    -webkit-box-ordinal-group: 4;
    -webkit-order: 3;
    -ms-flex-order: 3;
    order: 3;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    font-size: 14px;
    color: #333333;
}

.aui-center {
    -webkit-box-ordinal-group: 3;
    -webkit-order: 2;
    -ms-flex-order: 2;
    order: 2;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    height: 44px;
    width: 80%;
    margin-left: 22%;
}

.aui-center-title {
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
    font-size: 1rem;
    color: #333;
}

.icon {
    width: 19px;
    height: 19px;
    display: block;
    border: none;
    float: left;
    background-size: 19px;
    background-repeat: no-repeat;
}

.aui-flex-box h1 {
    color: #303741;
    font-weight: 500;
    font-size: 1rem;
    overflow: hidden;
}

.aui-flex-box h2 {
    color: #222;
    font-weight: 500;
    font-size: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
    text-overflow: ellipsis;
}

.aui-flex-box p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.aui-flex-box h3 {
    font-size: 0.95rem;
    color: #8a8a8a;
    font-weight: normal;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.aui-palace {
    padding:15px 0;
    position: relative;
    overflow: hidden;
    background: white;
}

.aui-palace-grid {
    position: relative;
    float: left;
    padding: 1px;
    width: 20%;
    box-sizing: border-box;
    margin: 10px 0;
}



.aui-palace-grid-icon {
    width: 25px;
    height: 25px;
    margin: 0 auto;
}

.aui-palace-grid-icon img {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

.aui-palace-grid-text {
    display: block;
    text-align: center;
    color: #333;
    font-size: 0.85rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-top: 0.5rem;
}

.aui-palace-grid-text h2 {
    font-size: 0.85rem;
    font-weight: normal;
    color: #424242;
}


.m-slider {
    overflow-x: hidden;
    width: 92%;
    margin:10px  auto 0;
    position: relative;
    border-radius:10px;
}

.slider-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
  
    -webkit-transform: translate3d(0px, 0px, 0px);
    transform: translate3d(0px, 0px, 0px);
    position: relative;
    z-index: 1;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
}

.slider-item {
    width: 100%;
    height: 100%;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    background: #f6f6f6;
}

.slider-item img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

.slider-pagination {
    text-align: right;
    position: absolute;
    width: 100%;
    z-index: 2;
    right: 0;
    bottom: 10px;
    pointer-events: none;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.slider-pagination > .slider-pagination-item {
    margin: 0 .25rem;
    width: 6px;
    height: 6px;
    display: inline-block;
    background-color: rgba(255,255,255,1);
    border-radius:100px;
}

.slider-pagination > .slider-pagination-item.slider-pagination-item-active {
    background-color: #f4d10a;
    width:15px;
    height:4px;
}


.icon-return{
    background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAEr0lEQVRoQ93bTWhcVRQA4HMmQ1DRnZU4714yFd2p6E7BhaCCO/9KOuNP24XYP3Chsa6krSul7U6buhBNYrsq3ZaKu9Zt6VYjIcw9dwIqaEVwkZkcOXAH4puTyJv33n0vedvO9N1vzv07594g7KInSZIDiPg8APyDiD84525kbT5m/UJVnzfGfAYAH4/ez8xr3vv9WduzK8DGmC8A4GQat7m5Odvv93tZ0LUHW2u/YeYjaRQzL3jvT2TBymdrCzbG3AsASwBwII1CxCXn3OGs2NqCZ2Zm9jWbTcG+XFRkR/9P7SLcbrfbGxsby4j4nBLB80T00SSRrSXYWvs4M0tkn1ZQZ4noTB5srbp0kiTPyNgEgMcU1CkiOpcXWxtwq9V6sdFoCPZhZYI66Zy7WAS2FmBr7auhGz+gTFBHvPeLRWErBxtj3g5LT3ryHDBz13t/tUhspeAkSY4i4iUFdBcAukR0vWhsZWBr7YfMfF4B9RGx45y7WQa2ErAx5jQAaMvLynA47Kyvr98uCxsdbIyRpWVeAd1h5oPe+5/LxEYFW2sXmPmYMhPfkm5MRL5sbDSwMUbW2HcU0I1ms9lZW1v7Mwa2dHC73b5nMBhcAYDXFNA1IjoIAINY2FLBrVbrQUS8gogvKaBlIjoUEzp6VynZkmQ8IbLPKlvFS86541VgS4lwyHguA8CTygR1wXuvzdLR/IVGOGQ8gn1EERSS3uX9ZQoDh4xHsA8pjSosvasF2Fr7CjPLbHyfMmZPOOcW8ja0qO/njrAx5i0A+E5rEDMf9t7LGlybJxd4h4xnCABzRHStNtLQkInBO2Q8fyHi3CTHIDF+nInAO2Q8641GY67X692K0fhJ3pEZHArkvysT1Aozz3nv70zSkFjfyQwO++NfASBdg9qbYImEMUYSeEnk008/dOkfY0Us63syR3j0AmvtPDNrteK7YdL6PmtjYnx+YrA0LkmSY4iobSr23rI0ikYotS5vs/E45L1X/y1GNLV35Irwlu4txXTZWsoR538eZj7uvdfKsZWYCwFLy0PyIOh9aQkizjvnLlQiTL20MHAY03IgJmjt7sVpIvq0anShYMGEAoCgn1Bw54joVJXowsGCmZ2d3T8cDiU3HivxMPNF7/3YBZVYP0IpYGm8XFuYmpq6rBXxEHHROTd2USUGujSwND7suyVXfl3BXCWi7p4p024FWmsXmVkry16fnp7urq6uyolhlKfUCG8VJEnyJSJq96puhhPDfgxxNHDo4p8DwNgszcy3w/nSStnoqOCwbH3CzNp6/BMzd8rOp6ODwwblA0TUdl7UaDQ6vV6vtPSyEnBAv4eIXyld+A9E7JZVE6sMHMb0mwAgG5T0swEAcmZceNWzUnAY01LEl7X6/rRalrKi08vKwaF7v4CIgp5R0IWml7UAB7RkWlIseDSNLjK9rA04dG+5XCrop5RxfYaIzuZdp2sFFoxkWoPBYGmb68O508vagUeZ1g4XxHOll7UEb8m0pHu/oYzpidPL2oJHSGvtt3Lsqozdr4no3axjuvbgEG31z3jkMjkR/ZIFvSvA22RafxPR2B3r/8PvGnBYq48CgOzBf2Pm9ye5m/kv0wnKTH+hWGwAAAAASUVORK5CYII=');

}

.icon-more{
    background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAIpUlEQVRoQ91be4xcZRU/5862W4O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RZPntFTx7jAMbwiC4G8NLbSZIe3+GQA0LVzPzMlttcp6w54NItIE+n0pfj8nItuSNwptxpeqjoi0ZhSbwyIy6nneemttcpeJ6WgIWLmJqOqsHdGyLwzDO4IgOKpz2xizHxHflngjL05PT68fGRl5ttaLzwRYhX3fXysi9Xqz7kHEfd3d3Y80aiyp5Uw+n/c9z9NK4EUlnv3MHK1qxkSJ6I8AsCyh73kR0YvIZMp7hC0zYGU2xrwTEbcDwGl1hu6/AOAJEdkjIk9PTU0FY2Nj2v0eo+XLly88dOjQiZ7n5T3PWxmG4cUpEVOZm5k5dpqKKiIiLaVQQv1TiLjOWqt3XM0P6ahEqVd6EyJuBADtC8lCWhHQfFU/ryldtB2fRbAR4N7e3uMWLFigoCtXzapXM6bDhw+vm5iYiNW4m4pw1MF8Pn+y53mbSs2fGX1vjk2d7urq2jA0NPTXepJEpL3XyrMgwfcQM38w2g/aMuCyYt/3z9PGTxHRM6wanim9jIi7wjDcW6oLZerSLRQKy8MwfCHFeKzrdsaAE/NpBSKeKyLao9lsu9OjInKviOwNgmCylbdmjDkTEbXcEp+3kYpoWwFHrfT393dPTk725nK53jAMe/WgX/pvPZOIOK6f6enpcc/zxnp6esaThetWAKsMEaXl9frT7cy8edYAt+pwO+R8379ERO5P0bXlmASsQGtc/bxwzAIuDe/NAHBbJNKPH9OAS6CvAQAF/hwAbPsfmCxNDQEZ6F4AAAAASUVORK5CYII=');

}

.aui-img{
    width:75px;
    overflow:hidden;
    border-radius:5px;
    margin-right:15px;
}
.aui-flex-box h3{
    color: #222;
    font-weight:normal;
    font-size: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
    margin-bottom:0.6rem;
    text-overflow: ellipsis;
}

.aui-flex-box h4 span img{
    width:15px;
    float:left;
    margin:0 2px;
}

.aui-flex-box h4{
    margin-bottom:0.3rem;
}

.aui-flex-box h4  em{
    font-style:normal;
    font-size:14px;
    color:#999;
    font-weight:normal;
    margin-left:10px;
}

.aui-flex-box h5 em,i{
    font-style:normal;
    font-size:14px;
    color:#999;
    font-weight:normal;
}

.aui-flex-box h5 i{
    text-align:right;
    float:right;
}

.aui-list .b-line:after{
    left:25%;
    width:75%;
}
</style>
</head>
<body>

<section class="aui-flexView">
    <header class="aui-navBar aui-navBar-fixed ">
        <a href="javascript:;" class="aui-navBar-item">
            <i class="icon icon-return"></i>
        </a>
        <div class="aui-center">
            <span class="aui-center-title">休闲娱乐</s.........完整代码请登录后点击上方下载按钮下载查看

网友评论0