XIAOMI
【代码】XIAOMI。
·
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
{
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
}
.header {
width: 100%;
height: 40px;
background-color: #333;
line-height: 40px;
}
.header-content {
width: 1226px;
margin: 0 auto;
display: flex;
justify-content: space-between;
}
.header-left a {
color: #b0b0b0;
font-size: 12px;
margin-right: 10px;
}
.header-left a:hover {
color: #fff;
}
.header-right a {
color: #b0b0b0;
font-size: 12px;
margin-left: 10px;
}
.header-right a:hover {
color: #fff;
}
.top-bar {
width: 1226px;
height: 100px;
margin: 0 auto;
display: flex;
align-items: center;
}
.logo img {
width: 55px;
height: 55px;
}
.nav {
margin-left: 100px;
}
.nav li {
display: inline-block;
margin-right: 20px;
}
.nav li a {
color: #333;
font-size: 16px;
}
.nav li a:hover {
color: #ff6700; /
}
.search {
margin-left: auto;
}
.search input {
width: 200px;
height: 30px;
padding: 0 10px;
border: 1px solid #e0e0e0;
}
.search button {
width: 40px;
height: 32px;
background-color: #fff;
border: 1px solid #e0e0
}
.search button:hover {
background-color: #ff6700;
color: #fff;
border-color: #ff6700;
}
.banner {
width: 1226px;
height: 460px;
background-color: #f5f5f5;
margin: 0 auto;
margin-bottom: 20px;
background-size: cover;
}
.goods {
width: 1226px;
margin: 0 auto;
}
.goods-title {
font-size: 22px;
color: #333;
margin-bottom: 15px;
padding-bottom: 5px;
border-bottom: 2px solid #ff6700;
display: inline-block;
}
.goods-list {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.goods-item {
width: 100%;
background-color: #fff;
text-align: center;
padding: 20px 0;
border: 1px solid #e0e0e0;
}
.goods-item img {
width: 160px;
height: 160px;
margin-bottom: 10px;
}
.goods-item .name {
color: #333;
font-size: 14px;
margin-bottom: 5px;
}
.goods-item .price {
color: #ff6700;
font-size: 16px;
}
</style>
</head>
<body>
<div class="header">
<div class="header-content">
<div class="header-left">
<a href="#">小米官网</a>
<a href="#">商城APP</a>
<a href="#">小米商城直营</a>
</div>
<div class="header-right">
<a href="#">购物车</a>
<a href="#">登录</a>
<a href="#">注册</a>
</div>
</div>
</div>
openvela 操作系统专为 AIoT 领域量身定制,以轻量化、标准兼容、安全性和高度可扩展性为核心特点。openvela 以其卓越的技术优势,已成为众多物联网设备和 AI 硬件的技术首选,涵盖了智能手表、运动手环、智能音箱、耳机、智能家居设备以及机器人等多个领域。
更多推荐
所有评论(0)