<!DOCTYPE html>
<html>
<head>
	<title>京东商城 - 购物、生活一站式服务平台</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css">
	<style>
		body {
			font-family: Arial, sans-serif;
			margin: 0;
			padding: 0;
			background-color: #f5f5f5;
		}
<pre><code>	.container {
		max-width: 1200px;
		margin: 0 auto;
		padding: 20px;
	}

	.header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		background-color: #fff;
		padding: 10px;
		box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	}

	.logo {
		font-size: 30px;
		font-weight: bold;
		color: #f40;
	}

	.search {
		display: flex;
		align-items: center;
		background-color: #f5f5f5;
		padding: 10px;
		margin: 10px 0;
		box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	}

	.search input[type='text'] {
		flex: 1;
		padding: 10px;
		border: none;
		border-radius: 5px;
		margin-right: 10px;
		font-size: 16px;
		background-color: #eee;
	}

	.search button {
		padding: 10px;
		border: none;
		border-radius: 5px;
		background-color: #f40;
		color: #fff;
		font-size: 16px;
		cursor: pointer;
	}

	.nav {
		display: flex;
		background-color: #fff;
		box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	}

	.nav li {
		flex: 1;
		text-align: center;
		padding: 10px;
		cursor: pointer;
		transition: background-color 0.3s ease;
	}

	.nav li:hover {
		background-color: #f5f5f5;
	}

	.banner {
		height: 200px;
		background-image: url('https://img10.360buyimg.com/babel/s750x300_jfs/t1/126649/33/14638/137215/5f8b2e13E9a0c1cc8/0ed51a5d5e7b0a46.jpg');
		background-size: cover;
		background-position: center;
		margin: 10px 0;
	}

	.product {
		display: flex;
		flex-wrap: wrap;
		margin: 10px 0;
	}

	.product-item {
		flex: 1;
		margin: 10px;
		background-color: #fff;
		box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	}

	.product-item img {
		width: 100%;
		height: 200px;
		object-fit: cover;
	}

	.product-item .name {
		font-size: 16px;
		font-weight: bold;
		margin: 10px;
	}

	.product-item .price {
		font-size: 16px;
		margin: 10px;
	}

	.product-item button {
		display: block;
		margin: 10px auto;
		padding: 10px;
		border: none;
		border-radius: 5px;
		background-color: #f40;
		color: #fff;
		font-size: 16px;
		cursor: pointer;
	}

	.footer {
		background-color: #f5f5f5;
		padding: 10px;
		text-align: center;
		font-size: 14px;
		box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
	}

	.social {
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 10px 0;
	}

	.social i {
		font-size: 20px;
		margin: 0 10px;
	}
&lt;/style&gt;
</code></pre>
</head>
<body>
	<div class="container">
		<header class="header">
			<div class="logo">京东商城</div>
			<div class="user-info">
				<i class="fa fa-user"></i> 登录 / 注册
			</div>
		</header>
		<nav class="nav">
			<ul>
				<li>首页</li>
				<li>手机数码</li>
				<li>电脑办公</li>
				<li>家用电器</li>
				<li>服饰内衣</li>
				<li>美妆个护</li>
				<li>食品生鲜</li>
				<li>母婴童装</li>
				<li>图书音像</li>
				<li>家具家装</li>
				<li>汽车生活</li>
			</ul>
		</nav>
		<div class="banner"></div>
		<div class="search">
			<input type="text" placeholder="请输入关键词">
			<button><i class="fa fa-search"></i> 搜索</button>
		</div>
		<div class="product">
			<div class="product-item">
				<img src="https://img10.360buyimg.com/n1/s450x450_jfs/t1/125313/22/14459/173283/5f8344a4Ee4c20b89/8d7c0e6b9f6c8d6e.jpg">
				<div class="name">Apple iPhone 12 Pro Max</div>
				<div class="price">¥9,599.00</div>
				<button>立即购买</button>
			</div>
			<div class="product-item">
				<img src="https://img14.360buyimg.com/n1/s450x450_jfs/t1/143420/11/2053/210975/5efb2c22Eed33f0c7/daa0d8c7c20886a9.jpg">
				<div class="name">华为Mate 40 Pro+</div>
				<div class="price">¥8,888.00</div>
				<button>立即购买</button>
			</div>
			<div class="product-item">
				<img src="https://img13.360buyimg.com/n1/s450x450_jfs/t1/123165/25/17805/124479/5f9f5d16E0a85a88e/bf49a5e5a5b1c95b.jpg">
				<div class="name">海尔冰箱</div>
				<div class="price">¥1,999.00</div>
				<button>立即购买</button>
			</div>
			<div class="product-item">
				<img src="https://img10.360buyimg.com/n1/s450x450_jfs/t1/133934/40/14956/300262/5f9ca9f9Ee382d9e1/1a0f1d0c2a2d54a2.jpg">
				<div class="name">小米电视</div>
				<div class="price">¥1,499.00</div>
				<button>立即购买</button>
			</div>
			<div class="product-item">
				<img src="https://img12.360buyimg.com/n1/s450x450_jfs/t1/146950/38/6977/96512/5f8cbe8cE9b9e9b94/0ce1d04713d7e2bd.jpg">
				<div class="name">华为MateBook X Pro</div>
				<div class="price">¥8,999.00</div>
				<button>立即购买</button>
			</div>
			<div class="product-item">
				<img src="https://img13.360buyimg.com/n1/s450x450_jfs/t1/146374/16/13054/123904/5fcf0b7dE1d5f5e6d/9bae1c90e8cb6d22.jpg">
				<div class="name">Nike Air Max 270 React</div>
				<div class="price">¥799.00</div>
				<button>立即购买</button>
			</div>
			<div class="product-item">
				<img src="https://img14.360buyimg.com/n1/s450x450_jfs/t1/137904/22/10587/88717/5f8c7eb2E0b72d15f/b16e30b3aa3f3c3b.jpg">
				<div class="name">华为 FreeBuds Pro</div>
				<div class="price">¥999.00</div>
				<button>立即购买</button>
			</div>
			<div class="product-item">
				<img src="https://img10.360buyimg.com/n1/s450x450_jfs/t1/144620/12/1735/67498/5f69e8b7E4a6e4ce3/4a4d2a7b1d4f5e5e.jpg">
				<div class="name">雅诗兰黛肌透修护精华露</div>
				<div class="price">¥1,199.00</div>
				<button>立即购买</button>
			</div>
		</div>
		<div class="social">
			<i class="fa fa-facebook"></i>
			<i class="fa fa-instagram"></i>
			<i class="fa fa-twitter"></i>
			<i class="fa fa-youtube"></i>
			<i class="fa fa-linkedin"></i>
		</div>
		<footer class="footer">
			&copy; 2021 京东商城 版权所有
		</footer>
	</div>
</body>
</html>
京东商城 - 购物、生活一站式服务平台

原文地址: https://www.cveoy.top/t/topic/mx1I 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录