请参照网址"https://www.bjd.com.cn/jbw/news/"写一个一样的html网页并给出代码
时间: 2023-05-26 19:04:09 浏览: 111
ucos2_中文版 第10章.doc
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>北京网——要闻</title>
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-success">
<div class="container">
<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="#">要闻</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>
<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>
</div>
</nav>
<div class="container mt-3">
<div class="row">
<div class="col-12">
<h3>最新要闻</h3>
<hr>
</div>
<div class="col-12 col-md-6 col-lg-4">
<a href="#">
<img src="https://picsum.photos/300/200" alt="新闻图片" class="img-fluid">
<h5>这里是新闻标题</h5>
<p>这里是新闻摘要,可以为空,也可以显示新闻的简要内容</p>
</a>
</div>
<div class="col-12 col-md-6 col-lg-4">
<a href="#">
<img src="https://picsum.photos/300/200" alt="新闻图片" class="img-fluid">
<h5>这里是新闻标题</h5>
<p>这里是新闻摘要,可以为空,也可以显示新闻的简要内容</p>
</a>
</div>
<div class="col-12 col-md-6 col-lg-4">
<a href="#">
<img src="https://picsum.photos/300/200" alt="新闻图片" class="img-fluid">
<h5>这里是新闻标题</h5>
<p>这里是新闻摘要,可以为空,也可以显示新闻的简要内容</p>
</a>
</div>
<div class="col-12 col-md-6 col-lg-4">
<a href="#">
<img src="https://picsum.photos/300/200" alt="新闻图片" class="img-fluid">
<h5>这里是新闻标题</h5>
<p>这里是新闻摘要,可以为空,也可以显示新闻的简要内容</p>
</a>
</div>
<div class="col-12 col-md-6 col-lg-4">
<a href="#">
<img src="https://picsum.photos/300/200" alt="新闻图片" class="img-fluid">
<h5>这里是新闻标题</h5>
<p>这里是新闻摘要,可以为空,也可以显示新闻的简要内容</p>
</a>
</div>
<div class="col-12 col-md-6 col-lg-4">
<a href="#">
<img src="https://picsum.photos/300/200" alt="新闻图片" class="img-fluid">
<h5>这里是新闻标题</h5>
<p>这里是新闻摘要,可以为空,也可以显示新闻的简要内容</p>
</a>
</div>
</div>
</div>
<footer class="bg-secondary text-center text-white py-3 mt-3">
<div class="container">
© 北京网 2021
</div>
</footer>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.min.js"></script>
</body>
</html>
阅读全文