PHP/CSS/HTML网络导航在Chrome中充当图像


PHP/CSS/HTML web nav acting as image in Chrome

我一直在一个小网站上工作,但有点卡住了。

在Internet Explorer中,网站导航工作正常,但在Google Chrome中,网站是不可点击的。

我认为这可能是由于导航的背景图像,所以我删除了它,但这似乎一点帮助都没有,我最终删除了样式表本身,即使在那之后它也不会起作用。

我的菜单设置为menu.php,它"包含"在所有页面中。

下面是应用于菜单的menu.php代码和样式表,菜单通过<?php include 'menu.php'?> 包含在每页中

我哪里错了?

ul.menu {
list-style-type:none;
width:auto;
position:relative;
display:block;
height:33px;
font-size:.6em;
font-family:Verdana,Helvetica,Arial,sans-serif;
margin:0;
padding:0;
}
ul.menu li {
display:block;
float:left;
margin:0;
padding:0;
}
ul.menu li a {
float:left;
color:#A79787;
text-decoration:none;
height:24px;
padding:9px 15px 0;
font-weight:normal;
}
ul.menu li a:hover,.current {
color:#fff;
text-decoration:none;
}
ul.menu .current a {
color:#fff;
font-weight:700;
}
/*NAVY* --Needs updating */
ul.menu.red{
background: #005581;
}
ul.menu.red li a:hover, .menu.red li.current {
background: #005581;
}
<?php
if ($_SESSION['acc_t'] == 1)
	{ echo'<!DOCTYPE html>	<link rel="stylesheet" type="text/css" title="CSS" href="styles/style3.css" media="screen">
<link rel="stylesheet" media="all" type="text/css" href="styles/menu_style_old.css" />
					<table width="900px">
						<tr>
							<td>
							<a name="#top">
							<ul class="menu red">
								<li class="current"><a href="index.php" target="_self">Home</a></li>
								<li class="current"><a href="myorders.php" target="_self">My Orders</a></li>
								<li class="current"><a href="mydepartment.php" target="_self">My Department</a></li>
								<li class="current"><a href="alldepartment.php" target="_self">All Departments</a></li>
								<li class="current"><a href="admin.php" target="_self">Administration</a></li>
								<li class="current" style="float:right;"><a href="preferences.php" target="_self">My Preferences</a></li>
						</ul>
					</td>
						<td style="float:right; text-align:right;font-size:12px;vertical-align:top;color:#fff;padding:6px;">
							<?php
									echo ("Date/Time: ");
									echo date("h:m:s");
									echo ("- ");
									echo date("Y-m-d ");
						?><br />
					</td>
				</tr>
		</table>
</div>
';} else { echo'
<link rel="stylesheet" type="text/css" title="CSS" href="styles/style3.css" media="screen">
<link rel="stylesheet" media="all" type="text/css" href="styles/menu/menu_style1.css" />		
					<table width="900px">
						<tr>
							<td>
							<a name="#top">
							<ul class="menu red">
								<li class="current"><a href="index.php" target="_self">Home</a></li>
								<li class="current"><a href="myorders.php" target="_self">My Orders</a></li>
								<li class="current"><a href="mydepartment.php" target="_self">My Department</a></li>
								<li class="current"><a href="alldepartment.php" target="_self">All Departments</a></li>
								<li class="current" style="float:right;"><a href="preferences.php" target="_self">My Preferences</a></li>
						</ul>
					</td>
						<td style="float:right; text-align:right;font-size:12px;vertical-align:top;color:#fff;padding:6px;">
							<?php
									echo ("Date/Time: ");
									echo date("h:m:s");
									echo ("- ");
									echo date("Y-m-d ");
						?><br />
					</td>
				</tr>
		</table>
</div>	
';}
?>

    </table>
</div>
';} else { echo'
<link rel="stylesheet" type="text/css" title="CSS" href="styles/style3.css" media="screen">

';}else{echo}

没有开始和结束php标记

已修复。

背景色和边距出现问题。