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.
我在谷歌上搜索了答案,但没有找到任何东西。我有一个绝对的内容位置,我想在网络浏览器上添加一个滚动条,但前提是它达到一定的大小。这是一个全屏网站,所以我不想一直有滚动条。如果我没有说清楚,请随时回复,我会尽快回复您。谢谢你。
CSS
.absPosDiv{ max-height:700px; /* however tall you want before scrolls*/ overflow:auto; /* if specifying x & y is important, use this instead of `overflow`*/ overflow-x: auto; overflow-y: hidden; }