Bootstrap fullscreen layout with 100% height

后端 未结 3 1006
感动是毒
感动是毒 2020-12-23 16:45

I want to develop a kiosk-app which should stretch itself to 100% of the complete touch-screen.

When I\'m nesting for each application-view/template the rows and co

3条回答
  •  鱼传尺愫
    2020-12-23 17:13

    Here's an answer using the latest Bootstrap 4.0.0. This layout is easier using the flexbox and sizing utility classes that are all provided in Bootstrap 4. This layout is possible with very little extra CSS.

    #mmenu_screen > .row {
        min-height: 100vh;
    }
    
    .flex-fill {
        flex:1 1 auto;
    }
    
    
    

    Demo

    The flex-fill and vh-100 classes are included in Bootstrap 4.1 (and later)

提交回复
热议问题