📜  带有滚动条的 CSS 下拉菜单 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:34.693000             🧑  作者: Mango

代码示例1
/*  Note that I added a screen width limit to 600px 
and fixed the menu height in 200px (with scrollbars), 
so you can adjust those numbers the way you want. */
@media (max-width: 600px) {
    #menu{
        max-height: 200px;
        overflow-x: hidden;
        overflow-y: auto;
    }
}