编辑:我已经包括bootstrap.js和bootstrap.min.js和仍然没有工作
你好,我举下拉菜单中不工作我抄了相同的代码,因为它是在w3schools.com但是当我点击它,它不会显示菜单栏选项。
这里是我的代码
<html>
<header lang="en">
<title>E-Sports News</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="bootstrap.css">
<link rel="stylesheet" href="style.css">
</header>
<body>
<div class="container">
<header class="jumbotron">
<h1>E-SportsNews.bg</h1>
<p>Your gaming new in one place</p>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">News
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Dota 2</a></li>
<li><a href="#">League of legends</a></li>
<li>><a href="#">Hearthstone</a></li>
<li><a href="#">Heroes of the storm</a></li>
</ul>
</li>
<li><a href="#">Galery</a></li>
<li><a href="#">Learn to play</a></li>
</ul>
</div>
</div>
</nav>
</header>
<main class="jumbotron">
<h2>Най-известна новина тази седмица.</h2>
<article>
<h2>
</h2>
</article>
</main>
<section class="col-lg-3">
<a href="#">Dota 2</a>
<img src="" alt="">
</section>
<section class="col-lg-3">
<h3>League of Legends</h3>
</section>
<section class="col-lg-3">
<h3>Hearthstone</h3>
</section>
<section class="col-lg-3">
<h3>Heroes of the Storm</h3>
</section>
</div>
</body>
当您单击新闻下拉按钮,它应该给你选项菜单中选择特定的游戏新闻,但是当你点击它什么都不做。