-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
53 lines (47 loc) · 1.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Test Menu.js</title>
<!-- Menu.js 样式 -->
<link rel="stylesheet" href="./src/menu.css">
</head>
<body>
<div class="ve-menu">
<ul class="ve-menu-pc">
<li><a href="#">首页</a></li>
<li><a href="#">购物</a>
<ul>
<li><a href="#">淘宝</a></li>
<li><a href="#">亚马逊</a></li>
<li><a href="#">京东</a></li>
</ul>
</li>
<li><a href="#">博客</a></li>
<li><a href="#">帮助与支持</a></li>
</ul>
</div>
<!-- Menu.js 依赖 -->
<script src="./lib/jquery-1.12.2.min.js"></script>
<script src="./lib/fastclick.js"></script>
<!-- Menu.js 脚本 -->
<script src="./src/menu.js"></script>
<script>
$('.ve-menu').menu({
fontSize: 14,
fontColor: '#333',
bgColor: '#fff',
hoverFontColor: '#2e76ef',
hoverBgColor: '#fff',
itemSpace: 5,
subFontSize: 14,
subHoverBgColor: '#666',
itemWidth: 40,
animate: 'slide',
speed: 500,
});
</script>
</body>
</html>