我有一个基于CSS的asp.net母版页。我正在使用直接位于导航div上方的浏览div。浏览div在导航div后面流动。我做了一些玩弄位置,发现如果我改变导航位置它修复它,但该div中的一切都在页面的一半。我已经做了一些谷歌搜索,无法找到关于如何强制div始终处于顶端的任何事情。如果您需要更多信息,我可以提供。CSS div问题与位置
我已经粘贴下面的CSS代码的选择部分:
#header2 {
height: 2.5em;
border-bottom: 1px dashed #0055a5;
color: #FFF;
background-color: white;
}
#header2 .browse {
color: #000000;
background-color: transparent;
float: left;
margin-left: 1em;
margin-top: .1em;
font-weight:bold;
font-style: normal;
font-variant: normal;
font-size: 70%;
line-height: normal;
font-family: Arial, Helvetica, Georgia, "Times New Roman", Times, serif;
width: 144px;
position: fixed;
}
#navigation
{
background-color: white;
width: 200px;
height:100%;
top: 105px;
left: 0em;
width: 13em;
position: absolute;
font-family: Arial, Helvetica, sans-serif;
font-size:90%;
}
有一部分落后于导航是一个JavaScript菜单下拉菜单。 – 2009-04-27 18:30:48
请包括这些标记的简化版本。那里有重要的信息,谁在哪里嵌套。另外,请提供一个示例页面的链接。谢谢 – 2009-04-27 18:32:39
我不能提供示例页面的链接。这些页面仅适用于Intranet。感谢您的关心。 – 2009-04-27 19:34:25