css布局实现移动端手机端电商个人中心我的h5页面代码
代码语言:html
所属分类:电商
代码描述:css布局实现移动端手机端电商个人中心我的h5页面代码
代码标签: 移动 端 手机 端 电商 个人 中心 我的 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 {
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;
}
img {
border: 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: #f5f5f5;
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-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;
}
.aui-navBar {
height: 44px;
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
z-index: 1002;
background: #fff;
}
.aui-navBar-item {
height: 44px;
min-width: 25%;
-webkit-box-flex: 0;
-webkit-flex: 0 0 25%;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
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;
}
.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: 50%;
margin-left: 25%;
}
.aui-center-title {
text-align: center;
width: 100%;
white-space: nowrap;
overflow: hidden;
display: block;
text-overflow: ellipsis;
font-size: 0.95rem;
color: #333;
}
.icon {
width: 20px;
height: 20px;
display: block;
border: none;
float: left;
background-size: 20px;
background-repeat: no-repeat;
}
.icon-return {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAACh0lEQVRoQ+3ZMW8TMRQH8PcOsTBQISExVCIRCwgWFvZ+hZYBpIrEcTYkBsTGlI2VDamL3YEBpWJoR1BJaOlXYEzyDYp0bMRGRjnJoDuWs/1e3EbKeHf55b33vzsb4YJ98IJ54RKce8XZV1gIcQ8AviDiD2vtC631pzZFYQ2WUt611p4CwM0VcqqU2soSXIN1ztdKqTfZgRuw75RSz9tg3bHsWjomlh04NpYVOAWWDbjf7z8oimLipbH7bUopJdvO7L/Hk8+wwyLiCSLe8H6cww4BwGYFTo0lbWkKLBmYCksCrsNaa99rrZ/FmFnS0GrCdrvd3mg0MqEDqu58yVKaAzZZSwshHgLAsX/rcW2csrJVtaNXeIWdIuL16qJU2OgVrsMCwEGn03mSamaThVYTtizLp+PxeJkioJKFFldslJbmjA0O5o4NCm7AHpZluUM5s1FCSwjxCAA++7ceADiczWaPJ5PJL6qAihJaUspdY8w+Il7xLsASG6SlhRA/EfGa91BxNJ/Pd7hVNtiT1mAwOAeADXdCa637Hi0Wi3zBUsptY8wHRLzqwIh/nlbzbWmna0roLEOrmo11QQd9W1oHdFDwOrR3cLCH/uuFn0uQRQE7dMPKJHl6RwNzRUcF/w9N9VIRHVyhazbLDihWP5KAHbphOzQ5OhmYCzopmAM6OZgaTQL20FMAuOUtHESfaTLwCn3HWnuWEk0KpkCTg1OjWYArtDHmKyJu+jMdeh+KDdghh8NhZ7lcfvPRoXcaWYFToNmBY6NZgj20m+nb3pr3W631yzY7GWzBDtXr9TaLojjz0N+VUvezBXvoPQBw0Fda649Zg9vg6o5l3dKhse58l+AY/yqnc/4GvNDoTFOq8FwAAAAASUVORK5CYII=");
}
.m-slider {
overflow-x: hidden;
width: 100%;
position: relative;
}
.slider-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
width: 100%;
height: 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: 100%;
background-color: rgba(255,255,255,0.4);
}
.slider-pagination > .slider-pagination-item.slider-pagination-item-active {
background-color: #fff;
border-radius: 100%;
}
.aui-palace {
padding: 0.8rem 0;
position: relative;
overflow: hidden;
}
.aui-palace-grid {
position: relative;
float: left;
padding: 1px;
width: 20%;
box-sizing: border-box;
margin: 5px 0;
}
.aui-palace-grid-icon {
width: 30px;
height: 30px;
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.2rem;
}
.aui-palace-grid-text h2 {
font-size: 0.8rem;
font-weight: normal;
color: #666666;
}
.aui-center-user {
width: 65px;
height: 65px;
margin-right: 1rem;
}
.aui-center-user img {
width: 65px;
height: 65px;
display: block;
border: none;
border-radius: 100%;
}
.aui-flex-box h2 {
color: #151515;
font-size: 1.2rem;
font-weight: normal;
margin-bottom: 0.4rem;
}
.aui-flex-box button {
background: #f7bfbe;
color: #fffffd;
border-radius: 20px;
border: none;
font-size: 0.7rem;
padding: 0 0.55rem;
}
.aui-button-red button {
border: 1px solid #bdbdbd;
border-radius: 20px;
padding: 0.35rem 0.8rem 0.35rem 2.2rem;
background: none;
font-size: 0.85rem;
color: #151515;
position: relative;
}
.aui-button-red button:after {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAHDElEQVRoQ+1afYwbxRX/vVlfPi6QFCi0upjz2rtEkNgbKghEENoGWiQSpaBEQEUVvqRWgAIKjSrRglpaIKD+QapWKG2JELSlilIVigQCQQgoQFJUIoHtXBrVe17fOWlLCuXCR3J3u/OqPeKL7+LdHTu2L2rs/+z5zXvvN+/Ne29mTDjJPnSS8UWH8P+7x+vyMANiwEoul9AuAOMrAOZM1QIR+DMibJYHvS1Jxzmsaocy4cF00nJJ/J6ILFXh7cHxR5C4Vc/bz6roUyLspFPLmcQzRJimIrTtGGYpQCt7c4XnonRHEv6XZZx1GNQPYFaUsKkd50Mx0Lx4tlAOsyOSsJM2H4PAHVNLRlU7b9Kz9ncbJsyAVsoYB0B0mqrKqcQx42N9WuEM2oXRIDtCPVy2zLgLDB43CeadRPw6JHYwPPv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hI+IpmZ9xLhDj1rb1Mh7SetgWlykRQiFkRYfibfUbmbctKJ85i6NhLha7V0t4RwlaI/d0m+e27eDjxCqiYtZh6c7srLevYUS8FeNe4D8NMJ9XgSuNWEAebDPOqdF5Sl60pazA/oOfvHAfuVSpbpt42hV02tJ+z3ASF1uJQxr2XCFpXQJ4nViXzhD7WwpQXGpaxRzZLV8j18jEHMoZ2WfwAAicRY0mJeAqIrxmUwngC4CMY2PW/vCFqYYsZ4kohuilq4tnh4jEhIL11tZDFj3kOEhyu/kcdLErvtt8KIHLk53QcgdsIQRoSXK4Y2QtjJGM+DaHkU2ebX4QiNJPmuRN7+VRjMyRhrQDSOqXUGnhARVmotQWxQIdt2wv5Zl5iv1nP2i4F78Xz9C+TF3mIgDuIn9ay9lvzzT42PY6VWgWlLWBmaPK1te7hKsUsStwRlW1VPlSzjJgZtUtm37c/StQvn06y5a5LvOh+pkvRxgwvjcz05/Teqe/ZE8PBRGxgf+rcSsz/lX57e3z8URvzIlfCdDNzYyPVsRfZUhHSNMo1hAu8CYSdA/QIoMzwGix4JSoJ4JYHOqScSgrAnBOFmEFGV0SE8aaWibzwaeGpR9UYrcB0PdzwcEleNvh62IlRVZXZCuhPSnZA+ugKdPayaOaYQ10la9SStgbRpSIHCFDqsbtVd8M4Ne4UMbS2Luj4Dp8aGIt+F6jarNROYMawfwpywJ5vI92EnYzwLomtaY2KTpTJv1XP2N8OkRhIenJ+8yItpbzfZtOaLY5YALdFzhZ3HRdifXNdzSfOpqElkrNFzhceiwJEerggoZcwNTFgbJbDt45979gd6rvCoim5lwr6wsfDWtNtA/G2AZqooaAXG/2sjgXMAdhHwVNh/Kyfrr4twK4xvt8wO4XaveLv1nXQe/h/4EJJqRmF3OQAAAABJRU5ErkJggg==');
content: '';
position: absolute;
z-index: 0;
top: 0.35rem;
left: 0.6rem;
background-size: 18px;
width: 18px;
height: 18px;
}
.aui-change-box {
width: 100%;
}
.aui-change-info {
box-shadow: 0 -15px 17px #ffd3b9;
width: 100%;
padding-bottom: 15px;
}
.aui-change-box .aui-flex {
background: #464259;
width: 92%;
margin: 0 auto;
border-radius: 10px 10px 0 0;
padding: 11px 15px;
}
.aui-flex-box h3 {
color: #ffe1bd;
font-weight: normal;
font-size: 1rem;
}
.aui-change-button button {
background: #ffe2c0;
color: #3c3b4d;
border-radius: 20px;
border: none;
font-size: 0.85rem;
padding: 0.2rem 0.55rem;
}
.aui-change-button {
position: relative;
padding-right: 1rem;
}
.aui-change-button:after {
content: " ";
display: inline-block;
height: 7px;
width: 7px;
border-width: 2px 2px 0 0;
border-color: #ffe2c0;
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: -5px;
right: 2px;
border-radius: 2px;
}
.aui-arrow {
text-align: right;
color: #394154;
padding-right: 12px;
position: relative;
font-size: 0.85rem;
}
.aui-arrow a {
color: #9a9a9a;
font-size: 0.85rem;
}
.aui-arrow:after {
content: " ";
display: inline-block;
height: 7px;
width: 7px;
border-width: 2px 2px 0 0;
border-color: #9a9a9a;
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: -5px;
right: 2px;
border-radius: 1px;
}
.aui-flex-box h1 {
color: #141414;
font-size: 0.99rem;
font-weight: normal;
}
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0