代码之家  ›  专栏  ›  技术社区  ›  rahim asgari

如何在HTML中定位垂直滚动条?

  •  3
  • rahim asgari  · 技术社区  · 14 年前

    我有一个固定宽度、高度和溢出的DIV:滚动属性。

    我希望垂直滚动条出现在DIV的左侧而不是右侧。

    有CSS或JavaScript解决方案吗?(支持FF和IE)

    3 回复  |  直到 14 年前
        1
  •  5
  •   Soufiane Hassou    14 年前
        2
  •  2
  •   Dyppl    14 年前

    <div style="direction: rtl; overflow: scroll">
         <div style="direction: ltr">
             Long content
         </div>
    </div>
    

        3
  •  2
  •   Spudley Pat    14 年前