本文介绍了HTML“overflow:auto”之间的区别和“overflow:scroll”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我研究 overflow
属性的值时,我遇到了这两个值: auto
和 scroll
,如果内容溢出元素,它会添加滚动条。
When I was studying the overflow
property's values, I came across these two values: auto
and scroll
, which adds scrollbar(s) if the content overflows the element.
有人可以解释一下他们之间的区别吗?
Could someone please explain me whats the difference between them?
推荐答案
滚动将始终显示滚动条,即使所有内容都适合,并且不能滚动。
Scroll will however always show the scrollbar even if all content fits and you cant scroll it.
这篇关于HTML“overflow:auto”之间的区别和“overflow:scroll”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!