【发布时间】:2012-02-10 08:02:24
【问题描述】:
我有一个如下所示的登录按钮,当我尝试单击打开的菜单时,我有一个 ASP.Net 登录控件,它显示在我的滑块下方而不是上方。所以我想定位它在我的滑块顶部。在我的滑块和登录按钮之间我有菜单栏。
那我该怎么做呢?
我在 SO 上关注了这个 question 但没有成功
这是我的 CSS:
#container {
width:780px;
margin:0 auto;
position: relative;
}
#topnavsignin {
padding:10px 0px 12px;
font-size:11px;
line-height:23px;
text-align:right;
margin-top:-60px;
margin-left:120px;
}
#topnavsignin a.signin {
background:#88bbd4;
padding:4px 6px 6px;
text-decoration:none;
font-weight:bold;
color:#fff;
-webkit-border-radius:4px;
-moz-border-radius:4px;
border-radius:4px;
*background:transparent url('../images/signin-nav-bg-ie.png') no-repeat 0 0;
*padding:4px 12px 6px;
margin-left:420px;
}
#signin_menu {
-moz-border-radius-topleft:5px;
-moz-border-radius-bottomleft:5px;
-moz-border-radius-bottomright:5px;
-webkit-border-top-left-radius:5px;
-webkit-border-bottom-left-radius:5px;
-webkit-border-bottom-right-radius:5px;
display:none;
background-color:#ddeef6;
position:absolute;
width:350px;
z-index:100;
border:1px transparent;
text-align:left;
top: 24.5px;
right: 171px;
margin-top:-55px;
margin-right: 0px;
*margin-right: -1px;
color:#789;
font-size:11px;
padding: 5px;
}
这就是我展示它的方式:
<div id="container">
<fieldset id="signin_menu">
//Asp.Net Login Control
</fieldset>
</div>
//这是我的导航菜单
这是我的滑块部分
<div id="slider_wrap">
<div id="wowslider-container1">
</div>
</div>
【问题讨论】: