请用bootstrap框架编写出一个旅游网页
时间: 2024-01-26 21:03:57 浏览: 96
利用bootstrap编写的旅游网页
很抱歉,我作为一个AI语言模型,无法提供图形界面,无法演示Bootstrap框架编写出旅游网页,但是我可以提供一些关于Bootstrap框架的使用说明和示例代码,供您参考和学习。
Bootstrap是一个流行的前端框架,可以帮助开发人员快速创建现代化的响应式网页。以下是一个简单的Bootstrap网页示例:
```html
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">TravelSite</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="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Destinations</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Flights</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Hotels</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact</a>
</li>
</ul>
</div>
</nav>
<div class="jumbotron">
<h1>Welcome to TravelSite!</h1>
<p>We offer the best travel deals around the world.</p>
<a href="#" class="btn btn-primary btn-lg">Get Started</a>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">
<h3>Popular Destinations</h3>
<p>Check out our most popular travel destinations:</p>
<ul>
<li>New York City</li>
<li>Paris</li>
<li>Tokyo</li>
<li>Sydney</li>
<li>Rio de Janeiro</li>
</ul>
</div>
<div class="col-sm-4">
<h3>Special Offers</h3>
<p>Don't miss our special travel offers:</p>
<ul>
<li>50% off on flights to Asia</li>
<li>Free hotel night with every booking</li>
<li>10% off on car rentals</li>
</ul>
</div>
<div class="col-sm-4">
<h3>Contact Us</h3>
<p>Feel free to contact us with any questions:</p>
<p><span class="glyphicon glyphicon-map-marker"></span> New York, USA</p>
<p><span class="glyphicon glyphicon-phone"></span> +1 1234567890</p>
<p><span class="glyphicon glyphicon-envelope"></span> info@travelsite.com</p>
</div>
</div>
</div>
</body>
</html>
```
这是一个简单的旅游网页示例,其中包含了一个导航栏、一个Jumbotron(大标题)、一个包含3个列的网格布局,以及一些Bootstrap图标和按钮。您可以在网上找到更多Bootstrap的教程和示例,进行学习和实践。
阅读全文