我从后端开发人员开始,我对前端了解一点。在这个周末,我做了一个爱好,然后就卡在这里了。
我遵循本教程: http: //foundation.zurb.com/apps/docs/# !/menu-bar
我不知道为什么菜单显示不正确:
源 HTMLview-source:http://localhost:8080/vyhndotnet/registration.jsp#
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Developer life</title>
<link rel="stylesheet"
href="/vyhndotnet/css/foundation.min.css" />
<link rel="stylesheet"
href="/vyhndotnet/css/app.css" />
<link rel="stylesheet"
href="/vyhndotnet/foundation-icon-font-3/foundation-icons.css" />
<script>$(document).foundation();</script>
</head>
<body>
<ul class="dark menu-bar">
<li><a href="#">Homepage</a></li>
<li><a href="#">Core Java</a></li>
<li><a href="#">JSP</a></li>
<li><a href="#">Web service</a></li>
<li><a href="#">Hibernate</a></li>
</ul>
<div class="row">
<div class="large-4 columns">
<h3>Đăng ký thành viên</h3>
<form action="/vyhndotnet/Registration" method="post">
<label>Tên đăng nhập: </label>
<input type="text" name="username" />
<label>Số điện thoại: </label>
<input type="text" name="mobile_number" />
<label>Email: </label>
<input type="text" name="email" />
<label>Quốc gia: </label>
<input type="text" name="nation" />
<button class="small button" type="reset"><i class="fi-loop"></i> Làm lại</button>
<button class="small button" type="submit"><i class="fi-key"></i> Đăng ký</button>
</form>
</div>
</div>
<script src="js/vendor/jquery.min.js"></script>
<script src="js/vendor/what-input.min.js"></script>
<script src="js/foundation.min.js"></script>
<script src="js/app.js"></script>
<a href="../../index.jsp" class="medium button"><i class="fi-home"></i> Homepage</a>
<br />
Copyright © 2016 VyHN
</body>
</html>
(foundation.min.css 加载正确,没有断开链接)
帮助我正确显示菜单使用 Zurb 基础。谢谢!