我正在尝试使用来自以下链接的引导材料设计中的按钮:http: //fezvrasta.github.io/bootstrap-material-design/bootstrap-elements.html
我从上面的链接下载了下拉按钮和所有需要的 CSS 和 JavaScript。当我尝试测试示例下拉按钮时,它没有正确绘制。下面是示例 html 代码和输出。
我无法找出我错过了什么。我试图从网上找到答案,但没有找到任何答案!所以我把它贴在这里。
<html>
<head>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<!-- Include roboto.css to use the Roboto web font, material.css to include the theme and ripples.css to style the ripple effect -->
<link href="css/roboto.min.css" rel="stylesheet">
<link href="css/material.min.css" rel="stylesheet">
<link href="css/ripples.min.css" rel="stylesheet">
</head>
<body>
<h3>Why this dropdown icon height is half of button????</h3>
<div class="btn-group">
<a href="javascript:void(0)" class="btn btn-primary">Primary</a>
<a href="bootstrap-elements.html" data-target="#" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="javascript:void(0)">Action</a>
</li>
<li><a href="javascript:void(0)">Another action</a>
</li>
<li><a href="javascript:void(0)">Something else here</a>
</li>
<li class="divider"></li>
<li><a href="javascript:void(0)">Separated link</a>
</li>
</ul>
</div>
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script src="js/ripples.min.js"></script>
<script src="js/material.min.js"></script>
<script>
$(document).ready(function() {
// This command is used to initialize some elements and make them work properly
$.material.init();
});
</script>
</body>
</html>