🗣 Wd提问: 爱家居网页设计html+css
🤖 Ai回答: 以下是一个简洁美观的“爱家居”网页设计示例,使用纯 HTML + CSS 实现,包含响应式布局(适配手机/平板/电脑):
html
<!DOCTYPE html
<html lang=zh-CN
<head
<meta charset=UTF-8
<meta name=viewport content=width=device-width, initial-scale=1.0
<title爱家居 品质生活从家开始</title
<style
/* 重置默认样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Microsoft YaHei, sans-serif;
line-height: 1.6;
color: 333;
background-color: f9f9f9;
}
/* 头部导航 */
header {
background: white;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 100;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 5%;
max-width: 1200px;
margin: 0 auto;
}
.logo {
font-size: 24px;
font-weight: bold;
color: c19a6b; /* 家居常用暖金色 */
}
.nav-links {
display: flex;
list-style: none;
}
.nav-links li {
margin-left: 30px;
}
.nav-links a {
text-decoration: none;
color: 333;
font-weight: 500;
transition: color 0.3s;
}
.nav-links a:hover {
color: c19a6b;
}
/* 主视觉区 */
.hero {
background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3') center/cover no-repeat;
height: 70vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
}
.hero-content h1 {
font-size: 3.5rem;
margin-bottom: 20px;
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-content p {
font-size: 1.2rem;
max-width: 600px;
margin: 0 auto 30px;
}
.btn {
display: inline-block;
background: c19a6b;
color: white;
padding: 12px 30px;
border-radius: 30px;
text-decoration: none;
font-weight: bold;
transition: background 0.3s;
}
.btn:hover {
background: a87c5d;
}
/* 产品展示区 */
.products {
padding: 80px 5%;
max-width: 1200px;
margin: 0 auto;
}
.section-title {
text-align: center;
margin-bottom: 50px;
font-size: 2.2rem;
color: 333;
}
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
}
.product-card {
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.product-card:hover {
transform: translateY(-10px);
}
.product-img {
height: 200px;
background-color: e9ecef;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
color: ddd;
}
.product-info {
padding: 20px;
}
.product-info h3 {
margin-bottom: 10px;
font-size: 1.4rem;
}
.price {
color: c19a6b;
font-weight: bold;
font-size: 1.2rem;
margin: 10px 0;
}
/* 页脚 */
footer {
background: 333;
color: white;
padding: 40px 5% 20px;
text-align: center;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
}
.footer-logo {
font-size: 28px;
margin-bottom: 20px;
color: c19a6b;
}
.social-links {
margin: 20px 0;
}
.social-links a {
color: white;
margin: 0 10px;
font-size: 1.5rem;
text-decoration: none;
}
.copyright {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid 555;
color: aaa;
}
/* 响应式调整 */
@media (max-width: 768px) {
.hero-content h1 {
font-size: 2.5rem;
}
.nav-links {
display: none; /* 移动端可替换为汉堡菜单 */
}
}
</style
</head
<body
<! 头部导航
<header
<nav class=navbar
<div class=logo爱家居</div
<ul class=nav-links
<li<a href=首页</a</li
<li<a href=产品</a</li
<li<a href=案例</a</li
<li<a href=关于我们</a</li
<li<a href=联系我们</a</li
</ul
</nav
</header
<! 主视觉区
<section class=hero
<div class=hero-content
<h1打造理想家居空间</h1
<p精选全球优质家居产品,为您定制舒适、美观、实用的生活环境</p
<a href= class=btn探索产品</a
</div
</section
<! 产品展示区
<section class=products
<h2 class=section-title热门产品</h2
<div class=product-grid
<! 产品卡片1
<div class=product-card
<div class=product-img🛋️</div
<div class=product-info
<h3北欧简约沙发</h3
<p天然棉麻面料,人体工学设计</p
<div class=price¥2,999</div
<a href= class=btn查看详情</a
</div
</div
<! 产品卡片2
<div class=product-card
<div class=product-img🪑</div
<div class=product-info
<h3实木餐桌椅套装</h3
<p北美FAS级橡木,环保清漆</p
<div class=price¥4,599</div
<a href= class=btn查看详情</a
</div
</div
<! 产品卡片3
<div class=product-card
<div class=product-img🛏️</div
<div class=product-info
<h3智能电动床架</h3
<p多角度调节,静音电机</p
<div class=price¥6,899</div
<a href= class=btn查看详情</a
</div
</div
</div
</section
<! 页脚
<footer
<div class=footer-content
<div class=footer-logo爱家居</div
<p品质生活,从爱家居开始</p
<div class=social-links
<a href=📱</a
<a href=📧</a
<a href=💬</a
</div
<div class=copyright
© 2023 爱家居 版权所有 |
📣 商家广告:





0
IP地址: 16.94.169.55
搜索次数: 0
提问时间: 2025-11-12 16:57:31
🛒 域名购买:
app.hl.cn
vg.gs
3331.top
sbnjt.com
psyshake.com
lytxw.com
zf.gs
82.chat
souhuai.com.cn
ef.gs
❓️ 热门提问:
14u机柜
net开发网页
VPS服务器搭建教程图解
网站主服务器ip地址
.org是哪里的域名
vps主机管理
搭建rtmp服务器
h5页面交互设计
dns服务器的作用
网站域名
豌豆Ai站群搜索引擎系统
🌐 域名评估:
163.com
vtolfair.org.cn
mo.cx
835.net.cn
c.xj.cn
pkio.cn
suzhouguo.cn
xphone.pub
rivj.cn
yu7.js.cn
⛏ 最新挖掘:
凯里酸汤鱼
贵阳烤脑花
都匀毛尖茶
花溪牛肉粉
贵阳烤生蚝
贵阳烤豆腐
贵阳纸包鱼
贵阳特色菜
🖌 热门作画:
🤝 关于我们:
豌豆Ai
域名
建站
站群
留痕
推广
评估
源码
开发Ai
工具
日记
价格
加盟
广告
流量
留言
联系
🗨 加入群聊:
🔗 友情链接:
北京海外推广
厂家定制月饼
ai提问
🧰 站长工具:
Ai工具 whois查询 搜索
📢 温馨提示:本站所有问答由Ai自动创作,内容仅供参考,若有误差请用“联系”里面信息通知我们人工修改或删除。
👉 技术支持:本站由豌豆Ai提供技术支持,使用的最新版:《豌豆Ai站群搜索引擎系统 V.25.10.25》搭建本站。