添加滚动到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;更多推荐
发布评论