有人可以帮我解决这个问题吗?如果我复制并粘贴到Bootply但在Chrome中无法运行,则下拉菜单有效...这是bootply:
两者之间的唯一区别是身体标签开始前的区域(bootply不需要)。我将在下面发布。
<html>
<head>
<meta charset="utf-8">
<title>Hulman Street Wesleyan Church - About Us</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="enter, comma separated, keywords, here">
<meta name="description" content="Enter a brief description of your website here">
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Droid+Sans|Cabin:400,700' rel='stylesheet' type='text/css'>
我确实在页面底部调用java脚本,显然它应该加载更快。
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/bootstrap-collapse.js"></script>
<script src="js/bootstrap-carousel.js"></script>
<script src="js/bootstrap-transition.js"></script>
<script src="js/bootstrap-dropdown.js">
$(document).ready(function () {
$('.dropdown-toggle').dropdown();
});