对于我的学校,我需要建立一个网站,我现在正试图解决这个问题。菜单栏看起来很棒。但我无法点击链接。如果你在链接上面徘徊它应该显示一条线,前两个它做:Home和Componenten。剩下的就是它没有出现,我无法点击它。 这是我的HTML和CSS,我真的无法找到问题
<!DOCTYPE html>
<html lang="nl">
<head>
<link href="contact.php" type="text/php">
<link rel="stylesheet" href="layout.css" type="text/css">
<title>webshop game artikelen</title>
</head>
<body>
<div id="container">
<table class="header-tabs" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="actief"><a href="index.html">Home</a></td>
<td style=" width: 120px;"><a href="component.html">Componenten</a></td>
<td><a href="randapparatuur.html">Randapparatuur</a></td>
<td><a href="laptop-amp-pc.html">Laptop & PC</a></td>
<td><a href="tablets-amp-telefoons.html">Tablets & Telefoons</a></td>
<td><a href="netwerk.html">Netwerk</a></td>
<td><a href="software.html">Software</a></td>
<td><a href="printing.html">Printing</a></td>
<td><a href="contact.html">Contact</a></td>
</tr>
</tbody>
</table>
<a href="contact.html"></a>
</div> <!--header-->
<div id="content">
<video poster="poster.jpg" width="618" height="347" controls preload>
<source src="stopmotion.mp4" media="only screen and (min-device-width: 568px)"></source>
<source src="stopmotion.mp4" media="only screen and (max-device-width: 568px)"></source>
<source src="video.ogv"></source>
</video>
</div> <!--content-->
<div id="footer">
2014, all right reserved
<a href="mailto:schoolscs%40gmail.com">Webmaster</a>
</div> <!--footer-->
</div> <!--container-->
</body>
</html>
这是我的css
#page {width: 800px;
position: relative;
min-height: 100%;
height:auto !important; /* voor moderne browsers */
height:100%; /* voor IE */
}
/* blauwe menubalk */
.header-tabs {
float: left;
border-collapse: collapse;
border-spacing: 2px;
font-size: 11pt;
}
.header-tabs td a, .header-tabs td a:visited{
height: 26px;
background-color: #424C77;
color: #eff2fe;
font-size: 0.8em;
text-decoration: none;
display: block;
line-height: 24px;
}
.header-tabs td.actief a{
background-color: #eff2fe;
color: #424C77;
}
.header-tabs td:hover a{
text-decoration: underline;
}
/* //menu */
#content
{
background-color: ######;
width: 80%;
position:relative;
#footer
{position: absolute;
bottom: 0; /* heel belangrijk */
height: 20px;
width: 100%;
}