javascript HTML div在没有jquery的情况下在div顶部溢出水平滚动

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9246761/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 06:02:39  来源:igfitidea点击:

HTML div overflow horizontal scroll at the top of div without jquery

javascriptjqueryhtmlcss

提问by Sameera Thilakasiri

Is it possible to show horizontalscroll bar of div at top of div via javascript or CSS without jquery. By default it comes at bottom.

是否可以horizontal通过javascript或CSS在没有jquery的情况下在div顶部显示div的滚动条。默认情况下,它位于底部。

I goggled for it but did not got any help.

我为它护目镜,但没有得到任何帮助。

回答by Sameera Thilakasiri

Try this Fiddle, it has scroll bars in top, This is based on How can I get horizontal scrollbars at top and bottom of a div?

试试这个Fiddle,它在顶部有滚动条,这是基于如何在 div 的顶部和底部获得水平滚动条?