overflow-y scroll not working in IE 11

前端 未结 3 1478
北荒
北荒 2020-12-18 07:33

Hi I have registration form .I need it to have a vertical scrollbar, I am using the below css:

.scrollbar{
    overflow-y: scroll;
    height:400px;
}


        
相关标签:
3条回答
  • 2020-12-18 07:50

    Actually this only works as of 5/2018 to have the overflow div contain another element inside of it. The other solutions do not

    This works

      <div style="overflow:auto"><p>{{largepiecetext}}</p></div>
    

    This does not

      <div style="overflow:auto">{{largepiecetext}}</div>
    
    0 讨论(0)
  • 2020-12-18 08:05

    The Below code worked for me . have added overflow-x, overflow-y,min-height, max-height

    <div style="overflow-x: auto; overflow-y: scroll;min-height: 110px;max-height: 110px;">{{largepiecetext}}</div>

    0 讨论(0)
  • 2020-12-18 08:06

    It's a bug.

    See https://msdn.microsoft.com/en-us/library/hh771902(v=vs.85).aspx

    You can use

    -ms-overflow-style:scrollbar;
    
    0 讨论(0)
提交回复
热议问题