我目前正在重新设计我管理的网站,但导航栏出现问题。它使用高分辨率可以完美运行(我目前使用的是 1440x900),但是当我切换到较低分辨率时,最后几个菜单项会被砍掉。
这是HTML:
<body>
<div id="page-wrap">
<div id="inside">
<div id="header">
<img src="LogoGood.gif" alt="LogoGood" width="591" height="224" />
<div id="nav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="writings.html">Writing</a></li>
<li><NOBR><a href="media.html">Media Relations</a></NOBR></li>
<li><a href="events.html">Events</a></li>
<li><NOBR><a href="proofreading.html">Proofreading</a><NOBR></li>
<li><NOBR><a href="work.html">Writing Workshops</a></NOBR></li>
<li><a href="publications.html">Publications</a></li>
<li><a href="About.html">Working With You</a></li>
<li><a href="aboutkathy.html">About Kathy Mayer</a></li>
<li><a href="contact.html">Contact Kathy</a></li>
</ul>
和CSS:
#page-wrap {
background: beige;
min-width: 780px;
max-width: 1260px;
margin: 10px auto;
}
#page-wrap #inside {
margin: 50px 10px 0px 10px;
padding-bottom: 10px;
}
#main-content {
background: beige;
padding-left: 50px;
padding-top: 80px;
height: 400px;}
#header {
padding-top: 5px;
background: beige;
text-align: center;}
#nav {
float: left;
width: 100%;
background: beige;
height: 80px;
overflow: hidden;
padding: 0;
margin: 10px 0 0 0;
border-bottom: 1px solid rgb(255,23,28);}
#nav ul{
text-align: center;
float: left;
list-style: none;
padding-left: 13px;
margin: auto;}
#nav li {
float: left;
list-style: none;}
#nav li a {
display: block;
padding: 8px 8px;
border-right: 1px solid rgb(255,23,28);}
提前致谢!