Twitter Bootstrap: div in container with 100% height

前端 未结 4 1829
旧巷少年郎
旧巷少年郎 2020-11-30 18:37

Using twitter bootstrap (2), I have a simple page with a nav bar, and inside the container I want to add a div with 100% height (to the bottom of the screen). M

4条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 19:00

    you need to add padding-top to "fill" element, plus add box-sizing:border-box - sample here bootply

提交回复
热议问题