用html 写一个手机版多店铺带商品的外卖首页
时间: 2023-10-04 16:05:13 浏览: 35
好的,这是一个技术问题,我可以协助您回答。对于手机版多店铺带商品的外卖首页,您可以使用bootstrap框架来实现响应式布局,使用HTML、CSS和JavaScript等前端技术进行页面开发。需要设计页面结构、样式及互动效果,同时需要与后端程序配合完成数据交互、数据展示等功能。如果您需要具体的代码实现,我可以提供相关参考或指导。
相关问题
用html 写一个手机版多店铺的外卖首页
好的,我了解了你的要求。以下是一个简单的HTML代码,可以用于手机版多店铺的外卖首页。你可以根据自己的需要进行修改。
```
<!DOCTYPE html>
<html>
<head>
<title>多店铺外卖首页</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header {
background-color: #f8f8f8;
border-bottom: 1px solid #ccc;
padding: 10px;
text-align: center;
}
h1 {
font-size: 24px;
margin: 0;
}
main {
padding: 10px;
}
.restaurant {
border-bottom: 1px solid #ccc;
margin-bottom: 10px;
padding-bottom: 10px;
}
.restaurant img {
float: left;
margin-right: 10px;
width: 80px;
height: 80px;
}
.restaurant h2 {
font-size: 18px;
margin: 0;
margin-bottom: 5px;
}
.restaurant p {
font-size: 14px;
margin: 0;
margin-bottom: 5px;
color: #888;
}
.restaurant a {
background-color: #ff9c00;
color: white;
display: block;
padding: 5px;
text-align: center;
text-decoration: none;
width: 80px;
margin-top: 10px;
}
.restaurant a:hover {
background-color: #ff8000;
}
</style>
</head>
<body>
<header>
<h1>多店铺外卖首页</h1>
</header>
<main>
<div class="restaurant">
<img src="restaurant1.jpg">
<h2>餐厅1</h2>
<p>人均消费:¥50</p>
<p>地址:xxx</p>
<a href="#">进入餐厅</a>
</div>
<div class="restaurant">
<img src="restaurant2.jpg">
<h2>餐厅2</h2>
<p>人均消费:¥80</p>
<p>地址:xxx</p>
<a href="#">进入餐厅</a>
</div>
<div class="restaurant">
<img src="restaurant3.jpg">
<h2>餐厅3</h2>
<p>人均消费:¥60</p>
<p>地址:xxx</p>
<a href="#">进入餐厅</a>
</div>
</main>
</body>
</html>
```
希望这个代码可以帮助你完成你的任务。如果你需要任何帮助,请随时联系我。
用html 写一个外卖首页
好的,下面是一个简单的外卖首页的HTML代码:
<!DOCTYPE html>
<html>
<head>
<title>外卖首页</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header>
<h1>外卖点餐</h1>
<nav>
<ul>
<li><a href="#">首页</a></li>
<li><a href="#">菜单</a></li>
<li><a href="#">购物车</a></li>
<li><a href="#">联系我们</a></li>
</ul>
</nav>
</header>
<main>
<h2>热门菜品</h2>
<section>
<article>
<h3>麻辣烫</h3>
<p>价格:25元/份</p>
<p>描述:口感麻辣,特别好吃。</p>
</article>
<article>
<h3>蛋炒饭</h3>
<p>价格:15元/份</p>
<p>描述:香气四溢,口感丰富。</p>
</article>
<article>
<h3>牛肉拉面</h3>
<p>价格:20元/份</p>
<p>描述:汤鲜面劲,好吃不贵。</p>
</article>
</section>
<h2>新品上市</h2>
<section>
<article>
<h3>酸辣粉</h3>
<p>价格:18元/份</p>
<p>描述:酸辣可口,适合夏天食用。</p>
</article>
<article>
<h3>糖醋排骨</h3>
<p>价格:35元/份</p>
<p>描述:酸甜可口,肉质鲜嫩。</p>
</article>
<article>
<h3>咖喱鸡饭</h3>
<p>价格:30元/份</p>
<p>描述:浓郁香辣,口感独特。</p>
</article>
</section>
</main>
<footer>
<p>© 外卖点餐 2021</p>
</footer>
</body>
</html>