<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage2.master.cs" Inherits="MasterPage2" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content=""/>
<meta name="author" content=""/>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- Custom CSS for the 'Heroic Features' Template -->
<link href="css/heroic-features.css" rel="stylesheet" />
<script type="text/javascript" language="javascript">
</script>
<title>Online Teacher Appraisal System</title>
<link rel="Stylesheet" type="text/css" href="css/jquery.datepick.css"/>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
<script src="Scripts/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="Scripts/jquery.datepick.js"></script>
<script type="text/javascript" src="Scripts/bootstrap.js"></script>
<script type="text/javascript" src="Scripts/bootstrap.min.js"></script>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<nav class="navbar navbar-fixed-top navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<a><div class="navbar-brand"style="color:#ff006e">Name yet to be decided</div></a>
<div class="navbar-right" style="color:#00ff21">
<%--<asp:Label CssClass="pull-right" ID="Label_login" runat="server" ></asp:Label></div>--%>
<ul class="nav navbar-nav pull-right" >
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<asp:Label CssClass="pull-right" ID="Label_login" runat="server" ></asp:Label></a>
<ul class="dropdown-menu">
<li><a href="#">Change Password</a></li>
<li><a href="#">Logout</a></li>
</ul>
</li>
</ul>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<%--<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="#about">About</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div><!-- /.navbar-collapse -->--%>
</div><!-- /.container -->
</nav>
<div class="container">
<asp:ContentPlaceHolder ID="Content" runat="server">
<asp:ContentPlaceHolder ID="Content1" runat="server">
</asp:ContentPlaceHolder>
</asp:ContentPlaceHolder>
<div class="jumbotron hero-spacer">
<asp:ContentPlaceHolder ID="Content2" runat="server">
</asp:ContentPlaceHolder>
</div>
<asp:ContentPlaceHolder ID="Footer" runat="server">
<footer>
<div class="row">
<div class="col-lg-12">
<p>Copyright © Aikya Dev Team 2013 </p>
</div>
</div>
</footer>
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
我正在尝试创建一个将用于登录页面的母版页,显示的登录名必须有一个下拉列表但是我试过这个但它不能正常工作 当我进入标签时它会徘徊,但下拉菜单永远不会出现 这个代码有什么问题请有人帮我这个
答案 0 :(得分:3)
如果您检查浏览器检查工具,我认为您可能遇到此错误:
Error("Bootstrap requires jQuery")
Bootstrap.js有一个jQuery依赖项。所以你需要在bootstrap.js之前加载jQuery第一个脚本。
这应该是订单。在</body>
标签上方。路径应该与放置文件的位置相关。
注意:使用/ parent_folder / .. path_to_your_files
<script src="/Scripts/jquery-1.9.0.js" type="text/javascript"></script>
<script src="/Scripts/bootstrap.js" type="text/javascript"></script>
希望这会有所帮助。 : - )