如何在HTML中定位垂直滚动条? [英] how to position vertical scroll bar in html?

查看:198
本文介绍了如何在HTML中定位垂直滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个固定宽度和高度的div和overflow:scroll属性。

我想垂直滚动条出现在div的左侧,而不是对。

任何css或javascript解决方案? (支持ff和ie)

解决方案

您可以使用 JScrollPane ,一个跨浏览器的jQuery插件,用你自己的滚动条创建一个自定义的scrollpane。



我知道你没有要求jQuery解决方案,但我认为这是在这种情况下明显的选择


I have a div with fixed width and height and overflow:scroll attribute.

I would like the vertical scroll bar appears in the left side of the div instead of right.

Any css or javascript solution? (supporting both ff and ie)

解决方案

You can use JScrollPane, a cross-browser jQuery plugin, to create a custom scrollpane with your own scrollbar.

I know you didn't ask for a jQuery solution, but I think it's the obvious choice in this case

这篇关于如何在HTML中定位垂直滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆