gpt4 book ai didi

html - css 溢出-x :none not working

转载 作者:行者123 更新时间:2023-11-28 10:51:44 24 4
gpt4 key购买 nike

如何防止水平 div 中的内容溢出显示?

我有这个 CSS:

#fixed_menu_div {
width:200px;
height:80%;
float:left;
left:0;
overflow-x:none;
overflow-y:scroll;
position:fixed;
}

div 显示在页面的左侧。

它的意思是隐藏水平滚动条:

overflow-x:none;

但它仍然显示。我想保留

overflow-y:scroll;

并隐藏水平滚动条。

最佳答案

none 溢出?我认为这是不正确的,我使用 net beans 不建议我“无”;

使用其中之一:

auto
hidden
no-content
no-display
scroll
visible

隐藏使用 hidden 。此拖车引用供任何需要研究溢出的人使用:MDNw3school

关于html - css 溢出-x :none not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19578239/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com