Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在做一个网站。问题是当我使用浏览器更改页面的分辨率时(CTRL - / + OR CTRL ZOOM),最后一个按钮向下溢出。我尝试了溢出:隐藏但我无法解决它。而且我还意识到,在某些计算机中,根据分辨率,即使我不缩放按钮,按钮也会向下溢出。
没有缩放
带变焦
尝试添加white-space: nowrap;到包含菜单项的元素。
white-space: nowrap;
如果你明确定义容器的宽度,它不会缩小,元素也不会换行。