【发布时间】:2016-08-20 08:11:25
【问题描述】:
我遇到了与上一个问题相同的问题:div doesn't expand all the way horizontally
我的render() 函数中只有
render() {
return (
<div className="container intro-body">
</div>
)
intro-body 的 CSS 就像这样(用于颜色)
.intro-body {
height: 582px;
background-color: #3BC5C3;
}
在 13 英寸 Macbook 上全屏显示时,左右两侧为空白。似乎有某种填充或边距。
但是当我将窗口缩小到大约一半大小时,它会到达左右两侧
有人能解释一下这个奇怪的现象吗?这是 Bootstrap 中我不知道的东西吗?有人告诉我使用 container-fluid 但 1。我认为它已在 Bootstrap 3 和 2 中删除。我尝试时它没有用。
【问题讨论】:
标签: javascript html css twitter-bootstrap