在服务器租赁、云产品展示等场景中,一款清晰的商品介绍界面能让用户快速了解配置信息。本文分享一套纯 HTML 编写的服务器商品介绍界面代码,布局规整、样式简洁,适配移动端和 PC 端,可直接集成到你的产品展示页中。
界面设计亮点
- 布局清晰:采用 flex 弹性布局,配置项(CPU / 内存 / 硬盘等)左对齐、参数右对齐,视觉层级分明;
- 响应式适配:适配手机、电脑等不同设备,不会出现内容溢出、排版错乱;
- 轻量化实现:纯原生 HTML + 内联样式,无外部依赖,加载速度快;
- 交互友好:按钮配色醒目,配置项间距合理,阅读体验佳。
代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div class="product-description" style="font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; padding: 0; box-sizing: border-box;">
<div style="display: flex; flex-direction: column;">
<div style="display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid #f0f3f7;"><span style="color: #64748b; font-size: 14px; font-weight: 500;">CPU</span> <span style="color: #1e293b; font-size: 15px; font-weight: 600;">16核</span></div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid #f0f3f7;"><span style="color: #64748b; font-size: 14px; font-weight: 500;">内存</span> <span style="color: #1e293b; font-size: 15px; font-weight: 600;">16GB</span></div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid #f0f3f7;"><span style="color: #64748b; font-size: 14px; font-weight: 500;">硬盘</span> <span style="color: #1e293b; font-size: 15px; font-weight: 600;">100GB</span></div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid #f0f3f7;"><span style="color: #64748b; font-size: 14px; font-weight: 500;">带宽</span> <span style="color: #1e293b; font-size: 15px; font-weight: 600;">50Mbps</span></div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 11px 0;"><span style="color: #64748b; font-size: 14px; font-weight: 500;">系统</span> <span style="color: #1e293b; font-size: 15px; font-weight: 600;">全系统可选</span></div>
</div>
<div style="margin-top: 12px; display: flex; gap: 8px;">
<div style="flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; color: #ffffff; background: #227FFF; height: 32px; border-radius: 4px;">电信网络</div>
<div style="flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; color: #ffffff; background: #0FC6C2; height: 32px; border-radius: 4px;">50G防御</div>
<div style="flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; color: #ffffff; background: #FB6F9D; height: 32px; border-radius: 4px;">手动过白</div>
</div>
</div>
</body>
</html>
演示图
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END





暂无评论内容