Modal dialog with fixed header and footer and scrollable content

后端 未结 5 1103
长情又很酷
长情又很酷 2021-02-14 16:57

I\'m trying to create a modal dialog that has an fixed header and footer and that the content (in this case list of users) inside the modal dialog is scrollable...

My be

5条回答
  •  一向
    一向 (楼主)
    2021-02-14 17:14

    .modal-body{
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
    

    this works for me

    thanks

提交回复
热议问题