Force vertical scrollbar to display in IE8

前端 未结 12 1440
遇见更好的自我
遇见更好的自我 2020-12-16 01:06

The vertical bar does not appear in IE8 if the page is not long enough. In FF, there is a workaround for this

html {
    overflow: -moz-scrollbars-vertical;
         


        
相关标签:
12条回答
  • 2020-12-16 01:57

    Another solution is to set the body height to 100% - see a before/after example at http://www.iecustomizer.com/msmvp/HTMLHeightTest.htm

    0 讨论(0)
  • 2020-12-16 01:58

    Try

    -ms-overflow-y : scroll;

    0 讨论(0)
  • 2020-12-16 01:58

    Add overflow:auto in css for html tag.

    0 讨论(0)
  • 2020-12-16 01:59

    html, body { height: 100.1%; }

    0 讨论(0)
  • 2020-12-16 02:00

    Oh figured it. Its

    body {
       overflow-y: scroll;
    }
    
    0 讨论(0)
  • 2020-12-16 02:02

    put it in your div i.e.

    style="overflow: -moz-scrollbars-vertical; overflow-y: scroll;
    

    for example :

    <div class="left" style="overflow: -moz-scrollbars-vertical; overflow-y: scroll;
     width: 230px; height: 500px;" >
    
    0 讨论(0)
提交回复
热议问题