CSS –从浏览器顶部到底部拉伸 UL

发布于 2024-12-14 04:15:32 字数 162 浏览 4 评论 0原文

我正在尝试重新组织我的 WordPress 安装的后端。代码太多,无法实际粘贴到此处,但请访问此处:

实际链接已删除/wp-admin/

我想做的是将菜单向左拉伸,这样它就可以从将“注销”向下移动到浏览器的最底部。

不知道如何解决这个问题..

I'm trying to reorganize the backend of my Wordpress install. Too much code to actually paste here, but visit here:

Actual link removed/wp-admin/

What I'm trying to do is to stretch the menu to the left, so it goes all the way from the top to the bottom of the browser, and also move down "Log out" to the very bottom of the browser.

Don't know how to solve this..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぺ禁宫浮华殁 2024-12-21 04:15:32

你想让容器具有绝对位置,它本身应该是位置:固定100%高度
要按下注销按钮,它可以具有绝对位置和 0 的底部值。CSS

应类似于以下内容:

#adminmenuwrap {
    position: absolute;
}

#adminmenu {
    position: fixed;
    height: 100%;
}

li.log-out {
    position: absolute;
    bottom: 0;
}

You want to make the container have position absolute, the itself should be position: fixed with 100% height
To push the log out button down it can have position absolute and a bottom value of 0.

CSS should be similar to the below:

#adminmenuwrap {
    position: absolute;
}

#adminmenu {
    position: fixed;
    height: 100%;
}

li.log-out {
    position: absolute;
    bottom: 0;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文