写一段美团首页的静态页面
时间: 2023-04-09 17:01:36 浏览: 186
部分美团静态首页.zip
很高兴回答你的问题。以下是一段美团首页的静态页面:
<!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.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">美团</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">首页<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">美食</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">电影</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">酒店</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">休闲娱乐</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">外卖</a>
</li>
</ul>
</div>
<form class="form-inline">
<input class="form-control mr-sm-2" type="search" placeholder="搜索" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">搜索</button>
</form>
</nav>
</header>
<main>
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">美团外卖</h1>
<p class="lead">让美食更方便</p>
<a class="btn btn-primary btn-lg" href="#" role="button">立即订餐</a>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="card">
<img class="card-img-top" src="img/food1.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">美食1</h5>
<p class="card-text">这是一道非常美味的菜品,口感鲜美,营养丰富。</p>
<a href="#" class="btn btn-primary">立即订餐</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<img class="card-img-top" src="img/food2.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">美食2</h5>
<p class="card-text">这是一道非常美味的菜品,口感鲜美,营养丰富。</p>
<a href="#" class="btn btn-primary">立即订餐</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<img class="card-img-top" src="img/food3.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">美食3</h5>
<p class="card-text">这是一道非常美味的菜品,口感鲜美,营养丰富。</p>
<a href="#" class="btn btn-primary">立即订餐</a>
</div>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="container">
<div class="row">
<div class="col-md-4">
<h5>关于我们</h5>
<p>我们是一家专业的美食外卖平台,致力于为用户提供更方便、更快捷的订餐服务。</p>
</div>
<div class="col-md-4">
<h5>联系我们</h5>
<p>电话:400-123-4567</p>
<p>邮箱:service@meituan.com</p>
</div>
<div class="col-md-4">
<h5>关注我们</h5>
<ul class="list-unstyled">
<li><a href="#"><i class="fa fa-weibo"></i> 微博</a></li>
<li><a href="#"><i class="fa fa-weixin"></i> 微信</a></li>
<li><a href="#"><i class="fa fa-qq"></i> QQ</a></li>
</ul>
</div>
</div>
</div>
</footer>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</body>
</html>
阅读全文