gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 17:44:59 27 4
gpt4 key购买 nike

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

在 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标签

关于PHP/CSS/HTML 网络导航在 Chrome 中充当图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28406520/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com