css布局实现一个理财金融商城类app首页h5页面效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现一个理财金融商城类app首页h5页面效果代码

代码标签: 一个 理财 金融 商城 app 首页 h5 页面 效果

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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <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: #f5f7fc;
    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: 13px;
}

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

.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: 0.95rem;
    color: #333;
    font-weight: bold;
}

.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: 1.1rem;
    overflow: hidden;
}

.aui-flex-box h2 {
    color: #303741;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.aui-flex-box p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    color: #676767;
}

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

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

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

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

.aui-palace-grid img {
    width: 100%;
    margin: 0 auto;
}

.aui-palace-grid p {
    text-align: center;
    font-size: 12px;
    color: #919191;
}

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

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

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

.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: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 100px;
    background-color: rgba(255,255,255,0.4);
}

.slider-pagination > .slider-pagination-item.slider-pagination-item-active {
    background-color: #fff;
}

.aui-search-box {
    background-color: rgba(255,255,255,0.4);
    border-radius: 100px;
    position: relative;
    width: 100%;
    margin: 0 auto;
    height: 32px;
    border: 1px solid #959595;
}

.aui-search-box input {
    width: 90%;
    background: none;
    border: none;
    font-size: 0.85rem;
    text-align: left;
    height: 32px;
    border-radius: 100px;
    padding: 0.5rem 0 0.55rem 1.8rem;
    color: #fff;
}

.icon-search {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFUAAABACAYAAABr7jtyAAAGbUlEQVR4Xu2abYhUVRjHn+eM+zIiZQaZ28o9585ktiGiaaiVGJSQohkYFAZmRFYfQrP8FGkf+hCxKvihd/JDUUQvlr3RB7UXfCntvanF3XvOLLtKRJtQ7MaO9zxxljvLbRidubNz7ox5D1wWdp7n/zzPb5577rnnDEIy6k4A666YCEIC1UITJFATqBYIWJBMOjWBaoGABcmkUxOoFghYkDwvOjWTyczUWs8GgKsAALXWvZMmTTrR19fXa4HJhCWbEqoQYjkRzWOMLSKiZQAw9RyVHgSALxHxW8/z3pkwkToINBVU13XnENEWAFhfS21EtJ8x1u153ke1+NfLp2mgcs63IeKjADClDsW9nE6nN+Vyub/roBVZoimgCiHeB4BVZbI/SESfAcBBxtjJlpaWU0NDQ9Te3j6dMWauJQCwHABuKfUlop9TqdSaRsy7DYcqhBgEgI4SKAbmk0opM19WHJlM5nqt9VYAWF3GeKm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1/QzrVJJbJZLJa6xMlSf5GROZtxyyBIg/HcealUqkniGhNibMcHR1dODg4OP7+H1k8gkPDoAbTwI0A8Hlpvoi4S2ttfkxRVdd2dHRMbm9v30pEj5We+Ye0jxQKhZUDAwNDEfjUZNpQqCbjYB1pTjjnllTwHREdYIztP9sJaLCduAIAbgaAeWUImM68NPT/w77vr7S9O9ZwqMU5dmRkxLwUrD1Ha5wkolOIaF51zbGzuVrL2SPiNwCw0fd9nzH2IQDMKNoh4iGt9cpq74JaWrUpoBYT55yvN3udADCnlmIAwJzKdhNRt1JqbKsvWKuaO2EcLBGZzRVrYJsKarFrh4eHtyDiYgAw10VVADa7XYe11i+VO03IZrPzfd83HXt5SOuYlDL8C5YqwlRn0nRQS9MOOs0svczW4WwiQsbYCSLqNdeZM2eODgwMjFQqN3jpMGDHf7FifsgipcxX8o36edNDjVrQuexd111ARJ8CwCUAcFpKaf7WfVxQUA29zs7OdFtb2/xCoZCztQq44KDWvS3LCCZQLVBOoCZQLRCwIJl0agLVAgELkkmnJlAtELAgmXRqAtUCAQuSSacmUC0QsCCZdGoC1QIBC5JJpyZQLRCwIJl0qgWo/wJ+pk9fmnVwXgAAAABJRU5ErkJggg==');
    position: absolute;
    left: 2px;
    top: 7px;
    background-size: 25px;
}

.aui-palace-one .aui-palace-grid {
    width: 20%;
}

.aui-palace-one .aui-palace-grid-icon {
    width: 25px;
    height: 25px;
}

.aui-flex-one {
    padding: 0 7px;
}

.aui-flex-one .aui-flex-box {
    padding: 0 5px;
}

.aui-flex-two {
    padding: 0 7px;
}

.aui-flex-two .aui-flex-box {
    padding: 0 5px;
}

.aui-flex-two .aui-flex-box img {
    border-radius: 5px;
}

.aui-list-box {
    padding: 0.1rem 0 0 1rem;
    overflow: hidden;
    position: relative;
}

.aui-list-item {
    width: 29%;
    float: left;
    margin: 0 4% 2% 0;
    background: #fff;
    display: block;
    overflow: hidden;
}

.aui-list-theme-img {
    height: auto;
    width: 100%;
    position: relative;
}

.aui-list-theme-img img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

.aui-list-theme-message {
    background: #fff;
    padding: 0.3rem 0;
}

.aui-list-theme-title {
    color: #4a4a4a;
    font-size: 0.92rem;
    margin: 0.2rem 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
    font-weight: normal;
    text-overflow: ellipsis;
}

.aui-list-theme-message p {
    color: #ff3b52;
    font-size: 0.88rem;
    font-weight:bold;
}

.aui-list-theme-message span {
    font-size: 0.7rem;
    color: #919191;
    padding: 0 0.2rem;
    text-decoration: line-through;
}

.aui-list-theme-message p i {
    font-style: normal;
    font-size: 0.7rem;
    padding: 0 0.2rem;
    color: #ff3b52;
    float: right;
    width: 25px;
    height: 25px;
}

.aui-list-theme-message p em {
    font-style: normal;
    font-size: 0.7rem;
    color: #ff3b52;
    text-decoration: line-through;
    font-weight:normal;
}

.aui-footer {
    width: 100%;
    position: relative;
    z-index: 100;
    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;
    padding: 7px 5px 7px 5px;
    background: #fefefe;
    box-shadow: 0 0 1px #a5a5a5;
}

.aui-tabBar-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    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;
    -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;
    color: #979797;
    position: relative;
}

.aui-tabBar-item-text {
    display: inline-block;
    font-size: 0.65rem;
    color: #7d7d7d;
    padding-top: 2px;
}

.aui-tabBar-item-active .aui-tabBar-item-text {
    color: #4c87ff;
}
    </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">
                <img src="//repo.bfw.wiki/bfwrepo/image/6082323d093fd.png" alt="">
            </i>
        </a>
        <div class="aui-center">
            <div class="aui-search-box">
                <i class="icon icon-search"></i>
                <input type="text" placeholder="闲钱理财 收益稳定">
            </div>
        </div>
        <a href="javascript:;" class="aui-navBar-item">
            <i class="icon ">
                <img src="//repo.bfw.wiki/bfwrepo/image/608232262d3d1.png" alt="">
            </i>
        </a>
    </header>
    <section class="aui-scrollView">
        <div class="m-slider" data-ydui-slider>
            <div class="slider-wrapper">
                <div class="slider-item">
                    <a href="javascript:;">
                        <img src="//repo.bfw.wiki/bfwrepo/image/60723252d15cf.png" alt="">
                    </a>
                </div>
                <div class="slider-item">
                    <a href="javascript:;">
                        <img src="//repo.bfw.wiki/bfwrepo/image/60723252d15cf.png" alt="">
                    </a>
                </div>
                <div class="slider-item">
                    <a href="javascript:;">
                        <img src="//repo.bfw.wiki/bfwrepo/image/60723252d15cf.png" alt="">
                    </a>
                </div>
            </div>
            <div class="slider-paginati.........完整代码请登录后点击上方下载按钮下载查看

网友评论0