Bootstrap 4-全高

时间:2018-08-09 11:21:03

标签: html css angular twitter-bootstrap bootstrap-4

我知道有很多与此相关的主题,但是我尝试了其他主题的所有主题,但没有成功。

所以我目前在这里有以下代码:

import stylefrom 'someAddress..'

class RNComponent extends Component {

// some code..

<Text style={style.bigMe}>Test!</Text>

// some code..

}

内容没有达到我想要的程度。 顶部有一个导航栏,然后应该有三列,全高。

2 个答案:

答案 0 :(得分:0)

这应该做到。避免使用内联样式。

<div class="container-fluid h-100">

类似的答案在这里:Bootstrap 4, how to make a col have a height of 100%?

答案 1 :(得分:-1)

从div中删除样式100vh,并添加bootstrap 4类以获取100%的高度

<div class="h-100"></div>