css+div布局实现咸鱼二手交易平台app的ui原型图代码
代码语言:html
所属分类:布局界面
代码描述:css+div布局实现咸鱼二手交易平台app的ui原型图代码, 图片采用picsum.photos
代码标签: css div 布局 咸鱼 二手 交易 平台 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">
<title>二手交易平台 - 专业版</title>
<!-- 引入 Bootstrap Icons -->
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap-icons.1.11.3.css">
<style>
/* 全局重置与基础样式 */
:root {
--primary-color: #ff6f3d;
--primary-light-color: #fff3f0;
--text-color: #333;
--text-secondary-color: #666;
--text-light-color: #999;
--bg-color: #f5f5f5;
--white-color: #fff;
--border-color: #eee;
--border-light-color: #f0f0f0;
--star-color: #ffd700;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
height: 100%;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: #e0e0e0;
color: var(--text-color);
height: 100%;
display: flex;
align-items: center;
justify-content: flex-start; /* 从左开始排列 */
overflow-x: auto; /* 允许横向滚动 */
padding: 20px;
}
/* 页面容器 - 横向排列 */
.page-container {
display: flex;
gap: 20px; /* 页面之间的间距 */
height: 95vh;
max-height: 896px; /* 模拟iPhone Pro Max高度 */
}
.page {
width: 414px; /* 统一页面宽度 */
flex-shrink: 0;
background: var(--white-color);
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
border-radius: 20px;
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
}
.page-content {
flex-grow: 1;
overflow-y: auto;
}
.page-title-header {
text-align: center;
padding: 15px;
background: var(--primary-color);
color: var(--white-color);
font-size: 18px;
font-weight: bold;
flex-shrink: 0;
}
/* 通用组件 */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: var(--white-color);
border-bottom: 1px solid var(--border-color);
flex-shrink: 0;
height: 50px;
}
.navbar-title {
font-size: 18px;
font-weight: 600;
}
.navbar-icon {
font-size: 24px;
cursor: pointer;
}
.btn {
padding: 12px;
border: none;
border-radius: 24px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
text-align: center;
}
.btn-primary {
background: var(--primary-color);
color: var(--white-color);
}
.btn-secondary {
background: var(--primary-light-color);
color: var(--primary-color);
}
.bottom-bar {
position: absolute;
bottom: 0;
left: 0;
right: 0;
width: 100%;
display: flex;
align-items: center;
padding: 12px 16px;
background: var(--white-color);
border-top: 1px solid var(--border-color);
gap: 12px;
}
.bottom-nav {
position: absolute;
bottom: 0;
left: 0;
right: 0;
width: 100%;
display: flex;
background: var(--white-color);
border-top: 1px solid var(--border-color);
padding: 8px 0;
}
.nav-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
cursor: pointer;
color: var(--text-secondary-color);
}
.nav-item.active { color: var(--prima.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0