Hide html horizontal but not vertical scrollbar

后端 未结 8 1938
南笙
南笙 2020-11-28 19:49

I have an HTML textarea that is of fixed width, but variable height. I would like to set overflow:scroll and be able to show a vertical scrollbar, but not a hor

8条回答
  •  囚心锁ツ
    2020-11-28 20:14

    For me:

    .ui-jqgrid .ui-jqgrid-bdiv {
       position: relative;
       margin: 0;
       padding: 0;
       overflow-y: auto;  <------
       overflow-x: hidden; <-----
       text-align: left;
    }
    

    Of course remove the arrows

提交回复
热议问题