粘性和隐藏菜单

时间:2019-11-08 17:12:31

标签: drop-down-menu menu z-index sticky

我正在一个位于arcadeauction.fallouthosting.com的网站上工作,并且使我的网站顶部变粘,z索引为9999;但是,下拉菜单仍然隐藏在页面其余部分的后面。

Sticky Static


    <ul class="account_menu">

    <li class="account_menu dropdown"><a class="dropbtn.account_menu" href="account.asp?v=dashboard" style="text-decoration: none; color: ghostwhite;"><span style="position: relative; top: 4px; font-size: 12px; font-family: 'helvetica'; font-weight: bold;">My Account</span></span></a>

<%         响应。写“”&vbCrLf

        SET rs4a = oConn.Execute("SELECT * FROM aa_menu WHERE menu_name = 'account_menu' AND active = true AND deleted <> 1 ORDER BY sort")

        Do While NOT rs4a.EOF

        If rs4a("url") = "" OR isNull(rs4a("url")) THEN
            url = "#"
        Else
            url = rs4a("url")
        End If

    If rs4a("isHRt") = true THEN
        Response.Write "<hr style=""width: 230px; dispplay: block; border: 1px solid silver; margin: 3px 0px 3px 5px;"">"
    End If

    Response.Write "<a class=""dropbtn.account_menu"" href=""" &url& """>" & rs4a("page_name") & "</a>" &vbCrLf

    If rs4a("isHRb") = true THEN
        Response.Write "<hr style=""width: 230px; dispplay: block; border: 1px solid silver; margin: 3px 0px 3px 5px;"">"
    End If

        rs4a.MoveNext
        Loop


    Response.Write "</div>" &vbCrLf 
    Response.Write "</li>" &vbCrLf
    Response.Write "</ul>" &vbCrLf

%>

0 个答案:

没有答案