<!DOCTYPE html>
<html>
<head>
<title>西科美食评</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 20px;
}
section {
display: flex;
flex-direction: column;
gap: 20px;
}
.item {
display: flex;
align-items: center;
gap: 10px;
}
.item span {
font-size: 18px;
}
.item img {
width: 50px;
height: 50px;
object-fit: cover;
}
</style>
</head>
<body>
<header style="text-align:center;">
<h1>西科美食评</h1>
</header>
<h3 style="text-align:left;">西科美食排行榜</h3>
<section>
<div style="width:50%; float:left;">
<section>
<div class="item">
<span>①</span>
<img src="image.jpg" alt="图片">
<span>乐美滋泡泡鸡</span>
<span>></span>
</div>
<div class="item">
<span>②</span>
<img src="image.jpg" alt="图片">
<span>美美烤鱼</span>
<span>></span>
</div>
<div class="item">
<span>③</span>
<img src="image.jpg" alt="图片">
<span>幸福炸鸡块</span>
<span>></span>
</div>
</section>
<!-- 左侧部分内容 -->
</div>
<div style="width:50%; float:right;">
<!--右侧部分内容-->
</div>
</section>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>西科美食评</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.section {
text-align: center;
margin-bottom: 20px;
}
.button-group {
display: flex;
justify-content: space-between;
gap: 10px;
}
.button {
padding: 10px 20px;
background-color: #f2f2f2;
border-radius: 5px;
text-decoration: none;
color: #333;
font-weight: bold;
}
</style>
</head>
<body>
<div class="header">
<h1>西科美食评</h1>
</div>
<div class="section">
<h2>西科美食排行榜</h2>
</div>
<div class="button-group">
<a href="#" class="button">排行榜</a>
<a href="#" class="button">全部商家</a>
<a href="#" class="button">我的</a>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>西科美食评</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
display: flex;
flex-direction: column;
min-height: 100vh;
}
.header {
text-align: center;
padding-bottom: 10px;
}
.section {
text-align: center;
padding-top: 10px;
}
.button-group {
display: flex;
justify-content: space-between;
gap: 10px;
margin-top: auto;
}
.button {
padding: 10px 20px;
background-color: #f2f2f2;
border-radius: 5px;
text-decoration: none;
color: #333;
font-weight: bold;
}
.item img {
width: 50px;
height: 50px;
margin-right: 10px;
}
.container {
overflow-y: scroll;
height: 300px;
}
.inner-container {
display: flex;
flex-direction: column;
padding: 10px;
}
.item {
margin-bottom: 10px;
background-color: #f5f5f5;
height: 100px;
}
</style>
</head>
<body>
<div class="header">
<h1>西科美食排行榜</h1>
<input type="text" class="search-box" placeholder="搜索餐品...">
<button class="search-button">搜索</button>
</div>
<div class="section">
<div class="container">
<div class="inner-container">
<div class="item">
<span>①</span>
<img src="paopaoji.jpg" alt="图片" style="width: 100px; height: 100px;">
<span>乐美滋泡泡鸡</span>
<span type="button">></span>
</div>
<div class="item">
<span>②</span>
<img src="kaoyu.jpg" alt="图片" style="width: 100px; height: 100px;">
<span>美美烤鱼</span>
<span type="button">></span>
</div>
<div class="item">
<span>③</span>
<img src="zhaji.jpg" alt="图片" style="width: 100px; height: 100px;">
<span>幸福炸鸡块</span>
<span type="button">></span>
</div>
<div class="item">内容 4</div>
<div class="item">内容 5</div>
</div>
</div>
<!-- <section>
<div class="item">
<span>①</span>
<img src="paopaoji.jpg" alt="图片" style="width: 300px; height: 200px;">
<span>乐美滋泡泡鸡</span>
<span type="button">></span>
</div>
<div class="item">
<span>②</span>
<img src="kaoyu.jpg" alt="图片" style="width: 300px; height: 200px;">
<span>美美烤鱼</span>
<span type="button">></span>
</div>
<div class="item">
<span>③</span>
<img src="zhaji.jpg" alt="图片" style="width: 300px; height: 200px;">
<span>幸福炸鸡块</span>
<span type="button">></span>
</div>
</section> -->
</div>
<div class="button-group">
<div>
<a href="#" class="button">排行榜</a>
</div>
<div>
<a href="#" class="button">全部商家</a>
</div>
<div>
<a href="#" class="button">我的</a>
</div>
</div>
</body>
</html>