css布局实现电商手机端app个人中心效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现电商手机端app个人中心效果代码
下面为部分代码预览,完整代码请点击下载或在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: #f7f7f7; 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: #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-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: -4px; 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: 53px; } .aui-navBar { height: 44px; position: relative; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; z-index: 102; background-color: #27dbb5; background: -webkit-linear-gradient(to right,#27dbb5, #0ba0dd); background: -o-linear-gradient(to right,#27dbb5, #0ba0dd); background: -moz-linear-gradient(to right,#27dbb5, #0ba0dd); background: linear-gradient(to right,#27dbb5, #0ba0dd); } .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: 10%; } .aui-center-title { text-align: center; width: 100%; white-space: nowrap; overflow: hidden; display: block; text-overflow: ellipsis; font-size: 0.95rem; color: white; } .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: #303741; font-weight: 500; font-size: 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.6rem 0; position: relative; overflow: hidden; } .aui-palace-grid { position: relative; float: left; padding: 1px; width: 33.333%; box-sizing: border-box; margin: 10px 0; } .aui-palace-grid-icon { width: 45px; height: 45px; 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.8rem; font-weight: normal; color: #333; } .aui-palace-grid h2{ font-size: 1.2rem; font-weight: normal; color: #333; text-align: center; } .aui-palace-grid p{ font-size: 0.85rem; font-weight: normal; color: #b4cbd5; text-align: center; } .aui-white-bg-pa{ margin-top:150px; } .aui-bg-box { background-image: url("../img/bg.png"); padding-bottom: 20px; height: 10rem; background-position: top center; background-size: 100%; background-repeat: no-repeat; } .aui-user-box { width: 92%; height: auto; background: white; margin: -130px auto; border-radius: 10px; position:relative; box-shadow: 0 5px 10px #dedede; } .aui-white-bg{ background:white; } .aui-palace-one .aui-palace-grid{ width:25%; } .aui-palace-one .aui-palace-grid-icon{ width:25px; height: 25px; } .aui-palace-one .aui-palace-grid h2{ color:#3f3f3f; font-size:0.9rem; } .aui-white-bg-pa .aui-flex{ padding:15px 20px 0 20px; } .aui-user-img{ width:70px; overflow: hidden; border-radius: 100px; margin-right:20px; } .aui-cou-img { width: 20px; height: 20px; margin-right: 0.5rem; } .aui-cou-img img { width: 20px; height: 20px; display: block; border: none; } .aui-list-item{ background:white; margin-top:15px; } .aui-user-box .aui-flex-box h2 { color:#3e3e3e; font-size:1.2rem; margin-bottom:0; } .aui-user-box .aui-flex-box p{ color:#c4d1d7; font-size:0.8rem; } .icon-home{ background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgM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