添加滚动到css中的菜单项(Adding to a Scroll to menu items in css)

编程入门 行业动态 更新时间:2024-10-28 10:24:33
添加滚动到css中的菜单项(Adding to a Scroll to menu items in css)

我正在使用wordpress并且有大约8个菜单项,并且由于主题的设计方式,一些菜单项(在移动视图中)被页脚隐藏。 如何使菜单项滚动以便我可以查看列表底部的项目?

以下是它在移动设备上的显示方式: goo.gl/Gr2nNn

I am using wordpress and have about 8 menu items and due to how the theme has been designed, some of the menu items (in mobile view) get hidden by the footer. How can i make the menu items scroll such that I can view the items at the bottom of the list?

Here is how it appears on mobile: goo.gl/Gr2nNn

最满意答案

给这个<ul>元素:

<ul id="menu-menu-1" class="top-bar-menu left">

最大高度和自动溢出,例如:

max-height: 250px; overflow-y: auto;

Give this <ul> element:

<ul id="menu-menu-1" class="top-bar-menu left">

A max-height and automatic overflow, for example:

max-height: 250px; overflow-y: auto;

更多推荐

本文发布于:2023-08-03 04:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1382894.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:单项   中的菜   css   Adding   items

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!