div+css布局实现电商商城服务app个人中心我的ui代码
代码语言:html
所属分类:布局界面
代码描述:div+css布局实现电商商城服务app个人中心我的ui代码
代码标签: div css 布局 电商 商城 服务 app 个人 中心 我的 ui 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>个人中心</title>
<style>
/* CSS Reset and Basic Styles */
:root {
--primary-color: #5969FF;
--accent-color: #76D5B8;
--background-color: #F7F8FA;
--card-background: #FFFFFF;
--banner-background: #3D3D3D;
--text-color-primary: #333333;
--text-color-secondary: #666666;
--text-color-light: #999999;
--font-family-main: 'PingFangSC-Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-family-semibold: 'PingFangSC-Semibold', var(--font-family-main);
--font-family-numeric: 'D-DIN', var(--font-family-main);
}
body {
margin: 0;
font-family: var(--font-family-main);
background-color: var(--background-color);
color: var(--text-color-primary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.mobile-container {
max-width: 414px;
min-height: 100vh;
margin: 0 auto;
background-color: var(--background-color);
background-image: radial-gradient(circle at 50% -10%, #E6F9F4 0%, #F7F8FA 40%);
display: flex;
flex-direction: column;
position: relative;
}
.main-content {
flex-grow: 1;
padding: 16px;
padding-bottom: 80px; /* Space for fixed bottom nav */
}
/* Header */
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
max-width: 414px;
margin: 0 auto;
display: flex;
justify-content: flex-end;
align-items: center;
padding: 16px;
height: 44px;
z-index: 10;
}
.header-icon {
width: 24px;
height: 24px;
margin-left: 16px;
color: var(--text-color-primary);
}
/* User Info Section */
.user-info-section {
margin-top: 60px; /* Space for header */
display: flex;
align-items: center;
margin-bottom: 24px;
}
.avatar {
width: 56px;
height: 56px;
border-radius: 50%;
background-color: var(--primary-color);
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 28px;
font-weight: bold;
margin-right: 16px;
}
.user-details {
flex-grow: 1;
}
.user-name {
font-family: var(--font-family-semibold);
font-weight: 600;
font-size: 20px;
margin: 0 0 6px 0;
}
.user-phone {
font-size: 14px;
color: var(--text-color-light);
}
/* Stats Section */
.stats-section {
display: flex;
justify-content: space-between;
text-align: left;
margin-bottom: 20px;
padding: 0 4px;
}
.stat-item {
flex: 1;
}
.stat-value {
font-family: var(--font-family-numeric);
font-size: 24px;
font-weight: bold;
margin-bottom: 6px;
}
.stat-label {
font-size: 12px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0