Bootstrap 3 - set height of modal window according to screen size

前端 未结 6 510
隐瞒了意图╮
隐瞒了意图╮ 2020-12-13 03:58

I am trying to create a kind of responsive megamenu using Bootstrap 3 modal dialog. I would like to set the width and height of the whole modal window to 80% of the viewport

6条回答
  •  余生分开走
    2020-12-13 04:20

    I assume you want to make modal use as much screen space as possible on phones. I've made a plugin to fix this UX problem of Bootstrap modals on mobile phones, you can check it out here - https://github.com/keaukraine/bootstrap-fs-modal

    All you will need to do is to apply modal-fullscreen class and it will act similar to native screens of iOS/Android.

提交回复
热议问题