Html 引导中的响应滚动帧
我有一个正文,目前正在响应Html 引导中的响应滚动帧,html,css,twitter-bootstrap,Html,Css,Twitter Bootstrap,我有一个正文,目前正在响应 <div class = "col-sm-6 col-xs-6> <div class = "well"> <p> A lot of text... </p> </div> </div> 如果您希望井的高度根据屏幕大小或高度做出响应,只需指定身体的高度,在css中添加以下内容: html, body { height:100%; min-height: 100%
<div class = "col-sm-6 col-xs-6>
<div class = "well">
<p> A lot of text... </p>
</div>
</div>
如果您希望井的高度根据屏幕大小或高度做出响应,只需指定身体的高度,在css中添加以下内容:
html, body {
height:100%;
min-height: 100% !important;
}
然后,对于井,添加以下css:
.well{
height:100%;
}
可以将百分比更改为像素、em、%等,并根据需要相应地进行取值
.well{
height:100%;
}