我有一個包含家庭,病人,報告等的菜單。這個菜單應該出現在每個頁面中,它應該出現在每頁的右上角。我知道如何設計這個。現在我想讓它隱藏起來,只有當鼠標放在頁面右上角時纔會顯示。請大家告訴我如何做到這一點。如果你想要菜單欄的代碼,那麼這裏是這個當鼠標放在它上面時,如何啓用菜單欄
<html class="no-js" lang="en-US">
<head>
<style type="css/text">
body{
overflow:hidden;
}
</style>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title> Home</title>
<meta name="author" content="jQuery Foundation - jquery.org">
<meta name="description" content="jQuery: The Write Less, Do More, JavaScript Library">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="base.css">
<script src="jquery.min.js"></script>
<script>try{Typekit.load();}catch(e){}</script>
<meta name="generator" content="WordPress 3.5.1" />
</head>
<body >
<header>
<section id="global-nav">
<nav>
<div class="constrain">
<ul class="links">
<li><a href="template.html" target="content">Home</a></li>
<li><a href="createpatient.html" target="content">Patient</a></li>
<li><a href="template.html" target="content">Appointments</a></li>
<li><a href="template1.html" target="content">Reports</a></li>
<li><a href="login.html" target="content">logout</a></li>
</ul>
</div>
</nav>
</section>
</header>
</body>
</html>
看到我何時移動在塊的左邊有一些菜單出現在您的代碼中,但是當我移動鼠標點擊鏈接時,它會消失。請編輯代碼 – JavaCoding