我正在创建Semantic UI 2.1.7下拉菜单,但它没有显示。我有下面的代码,似乎我包含了必要的css和js文件。我错过了其他文件吗?我是否需要为每个组件包含css和js文件而不是仅包含一个文件?
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>Semantic UI Sign In/Sign Up Form</title>
<link href="semantic.css" rel="stylesheet" type="text/css" />
<style type="text/css">
</style>
</head>
<body>
<div class="ui inverted menu">
<div class="header item">Brand</div>
<div class="active item">Link</div>
<a class="item">Link</a>
<div class="ui dropdown item">
Dropdown
<i class="dropdown icon"></i>
<div class="menu">
<div class="item">Action</div>
<div class="item">Another Action</div>
<div class="item">Something else here</div>
<div class="divider"></div>
<div class="item">Separated Link</div>
<div class="divider"></div>
<div class="item">One more separated link</div>
</div>
</div>
<div class="right menu">
<div class="item">
<div class="ui transparent inverted icon input">
<i class="search icon"></i>
<input type="text" placeholder="Search">
</div>
</div>
<a class="item">Link</a>
</div>
</div>
<!-- content will go here -->
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="semantic.js" type="text/javascript"></script>
<script type="text/javascript">
</script>
</body>
</html>
答案 0 :(得分:0)
要使下拉列表工作,请确保安装节点4.x并从gulp构建。