<!DOCTYPE html> <html> <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>现代浏览器模板</title> <link href="css/bootstrap.min.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="js/html5shiv.js"></script> <script src="js/respond.min.js"></script> <![endif]--> <style> body{ padding-top: 50px; padding-bottom: 50px; } .carousel{ height: 500px; margin-bottom: 60px; } .carousel .item{ height: 500px; background-color: #000; } .carousel .item img{ width: 100%; background-color: #000; } .carousel-caption { z-index: 10; } .carousel-caption p{ line-height: 1.8em; font-size: 20px; margin-bottom: 20px; } #summary-container .col-md-4{ text-align: center; } hr.divider{ margin: 40px 0; } .feature{ padding: 30px 0; } .feature-heading{ font-size: 50px; color: #2a6496; margin-top: 120px; } .feature-heading .text-muted{ font-size: 28px; color: #999; } </style> </head> <body> <div class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation"> <div> <!-- Brand and toggle get grouped for better mobile display --> <div> <button type="button" data-toggle="collapse" data-target="#demo-navbar"> <span>切换导航</span> <span></span> <span></span> <span></span> </button> <a href="#">现代浏览器综述</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="demo-navbar"> <ul class="nav navbar-nav"> <li><a href="#carousel-example-generic">综述</a></li> <li><a href="#tab-list">简述</a></li> <li> <a href="#" data-toggle="dropdown">特点 <span></span> </a> <ul role="menu"> <li><a href="#tab-chrome">Chrome</a></li> <li><a href="#tab-firefox">Firefox</a></li> <li><a href="#tab-safari">Safari</a></li> <li><a href="#tab-opera">Opera</a></li> <li><a href="#tab-ie">IE</a></li> </ul> </li> <li><a href="#" data-toggle="modal" data-target="#about-modal">关于</a></li> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> <!-- 关于 --> <div class="modal fade" id="about-modal" tabindex="-1" role="dialog" aria-labelledby="modal-label" aria-hidden="true"> <div> <div> <div> <button type="button" data-dismiss="modal"><span aria-hidden="true">×</span><span>关闭</span></button> <h4 id="modal-label">关于</h4> </div> <div> <p>慕课网隶属于北京慕课科技中心(有限合伙),是一家从事互联网免费教学的网络教育公司。秉承“开拓、创新、公平、分享”的精神, 将互联网特性全面的应用在教育领域,致力于为教育机构及求学者打造一站式互动在线教育品牌。</p> </div> <div> <button type="button" class="btn btn-default" data-dismiss="modal">了解了</button> </div> </div> </div> </div> <!-- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="z-index:10600"> <div> <div> <div> <button type="button" data-dismiss="modal"><span aria-hidden="true">×</span><span>关闭</span></button> <h4 id="myModalLabel">关于</h4> </div> <div> <p>慕课网隶属于北京慕课科技中心(有限合伙),是一家从事互联网免费教学的网络教育公司。秉承“开拓、创新、公平、分享”的精神, 将互联网特性全面的应用在教育领域,致力于为教育机构及求学者打造一站式互动在线教育品牌。</p> </div> <div> <button type="button" class="btn btn-default" data-dismiss="modal">了解了</button> </div> </div> </div> </div> --> <script src="js/jquery-1.11.1.min.js"></script> <script src="js/bootstrap.min.js"></script> <script> $(document).ready(function() { $("#demo-navbar .dropdown-menu a").click(function() { /* Act on the event */ var href = $(this).attr("href"); $("#tab-list a[href='" + href + "']").tab("show"); }); }); </script> </body> </html>
老师,我想请问下,为什么我这个关于弹出框与背景变成黑底的了呢?找了好久也没找到原因,望解答