代码编辑器:
x
1
2
<meta charset="utf-8">
3
<meta name="viewport" content="width=device-width, initial-scale=1">
4
<link rel="stylesheet" href="https://cdn.bootcss.com/foundation/5.5.3/css/foundation.min.css">
5
<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
6
<script src="https://cdn.bootcss.com/foundation/5.5.3/js/foundation.min.js"></script>
7
<script src="https://cdn.bootcss.com/foundation/5.5.3/js/vendor/modernizr.js"></script>
8
9
<h2>下拉菜单触发条件</h2>
10
<a href="#" data-dropdown="id01" data-options="is_hover:true" class="button dropdown">鼠标移动到我这</a>
11
<ul id="id01" data-dropdown-content class="f-dropdown">
12
<li><a href="#">Link 1</a></li>
13
<li><a href="#">Link 2</a></li>
14
<li><a href="#">Link 3</a></li>
15
</ul>
16
<script>
17
$(document).ready(function() {$(document).foundation();})
18
</script>