javascript - bootstrap導(dǎo)航欄下拉菜單點不開?請問哪里出問題了
問題描述
<!DOCTYPE html><html lang='en'><head> <meta charset='UTF-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <meta name='viewport' content='width=device-width, initial-scale=1'> <title>Build a Personal Portfolio Webpage</title> <link rel='stylesheet' href='http://www.piao2010.com/wenda/rule/bootstrap-Normalize.css'> <link rel='stylesheet' > <link rel='stylesheet' href='http://www.piao2010.com/wenda/main.css'> <script src='https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js' integrity='sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa' crossorigin='anonymous'></script></head><body> <nav class='navbar navbar-default'><p class='container-fluid'> <!-- Brand and toggle get grouped for better mobile display --> <p class='navbar-header'><button type='button' data-toggle='collapse' data-target='#bs-example-navbar-collapse-1' aria-expanded='false'> <span class='sr-only'>Toggle navigation</span> <span class='icon-bar'></span> <span class='icon-bar'></span> <span class='icon-bar'></span></button><a href='http://www.piao2010.com/wenda/2720.html#'>Brand</a> </p> <!-- Collect the nav links, forms, and other content for toggling --> <p id='bs-example-navbar-collapse-1'><ul class='nav navbar-nav'> <li class='active'><a href='http://www.piao2010.com/wenda/2720.html#'>Link <span class='sr-only'>(current)</span></a></li> <li><a href='http://www.piao2010.com/wenda/2720.html#'>Link</a></li> <li class='dropdown'><a href='http://www.piao2010.com/wenda/2720.html#' data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='false'>Dropdown <span class='caret'></span></a><ul class='dropdown-menu'> <li><a href='http://www.piao2010.com/wenda/2720.html#'>Action</a></li> <li><a href='http://www.piao2010.com/wenda/2720.html#'>Another action</a></li> <li><a href='http://www.piao2010.com/wenda/2720.html#'>Something else here</a></li> <li role='separator' class='pider'></li> <li><a href='http://www.piao2010.com/wenda/2720.html#'>Separated link</a></li> <li role='separator' class='pider'></li> <li><a href='http://www.piao2010.com/wenda/2720.html#'>One more separated link</a></li></ul> </li></ul><form class='navbar-form navbar-left'> <p class='form-group'><input type='text' placeholder='Search'> </p> <button type='submit' class='btn btn-default'>Submit</button></form><ul class='nav navbar-nav navbar-right'> <li><a href='http://www.piao2010.com/wenda/2720.html#'>Link</a></li> <li class='dropdown'><a href='http://www.piao2010.com/wenda/2720.html#' data-toggle='dropdown' role='button' aria-haspopup='true' aria-expanded='false'>Dropdown <span class='caret'></span></a><ul class='dropdown-menu'> <li><a href='http://www.piao2010.com/wenda/2720.html#'>Action</a></li> <li><a href='http://www.piao2010.com/wenda/2720.html#'>Another action</a></li> <li><a href='http://www.piao2010.com/wenda/2720.html#'>Something else here</a></li> <li role='separator' class='pider'></li> <li><a href='http://www.piao2010.com/wenda/2720.html#'>Separated link</a></li></ul> </li></ul> </p> <!-- /.navbar-collapse --></p><!-- /.container-fluid --> </nav> <!-- jQuery (necessary for Bootstrap’s JavaScript plugins) --> <script src='https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js'></script> <!-- Include all compiled plugins (below), or include inpidual files as needed --> <script src='http://www.piao2010.com/wenda/js/bootstrap.min.js'></script></body></html>
問題解答
回答1:最后一行
<script src='http://www.piao2010.com/wenda/js/bootstrap.min.js'></script>
替換成
<script src='https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>
相關(guān)文章:
1. javascript - 打算寫一個c++的node圖像處理模塊,有沒有推薦的c++圖片處理庫?2. java - 同步/異步與阻塞/非阻塞之間的差異具體是什么?3. html5 - 前端面試碰到了一個緩存數(shù)據(jù)的問題,來論壇上請教一下4. macos - 無法source activate python275. css - 移動端 盒子內(nèi)加overflow-y:scroll后 字體會變大6. java - butterknife怎么綁定多個view7. css3 讓圖片變成灰色(filter),但針對IE11瀏覽器無效8. 運行python程序時出現(xiàn)“應(yīng)用程序發(fā)生異常”的內(nèi)存錯誤?9. android - Genymotion 模擬器可以做屏幕適配檢測嗎?10. python中如何計算t分布的值?

網(wǎng)公網(wǎng)安備