0
閱讀所有同樣的問題的主題和所做的一切,幫助有需要的人士,蝙蝠所有的不在我的代碼工作(請幫助。自舉下拉按鈕不起作用
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="main">
<div class="container">
<div class="row">
<div class="btn-group">
<button class="btn btn-primary btn-lg dropdown-toggle students" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">First <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">sub first</a></li>
<li><a href="#">sub second</a></li>
</ul>
</div>
<button type="button" class="btn btn-primary btn-lg teachers">Second</button>
</div>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="js/hover.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</body>
</html>
我沒有看到問題?https://jsfiddle.net/3jg552xL/ –
第一個按鈕對我來說是一個下拉按鈕,你在測試哪個瀏覽器? – Ma3x
你有沒有嘗試爲jQuery腳本添加'https:'? – Chitrang