<!DOCTYPE html>
<html>
<head>
<style>
.nav-container {
background-color: #f8f9fa;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin: 20px 0;
max-width: 600px;
}
.nav-title {
font-size: 24px;
color: #333;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px solid #dee2e6;
}
.nav-links {
display: flex;
flex-direction: column;
gap: 12px;
}
.nav-link {
text-decoration: none;
color: #495057;
padding: 8px 12px;
border-radius: 4px;
transition: all 0.3s ease;
}
.nav-link:hover {
background-color: #e9ecef;
color: #228be6;
transform: translateX(5px);
}
</style>
</head>
<body>
<div class="nav-container">
<div class="nav-title">
<a name="index">快速導覽</a>
</div>
<div class="nav-links">
<a href="#phpmyadmin" class="nav-link">測試</a>
</div>
</div>
</body>
</html>
製作文章連結HTML
<h2>
<a name="phpmyadmin"></a>
<a href="#index">測試</a>
</h2>