html - 将 div 拉伸(stretch)到浏览器的一侧

标签 html css twitter-bootstrap

我有以下 Bootstrap 标记:

<div class="container">
  <div class="row">
   <div class="col-md-8">content</div>
   <div class="col-md-4">
     <div class="map">map goes here</div>
   </div> 
 </div>
</div>

.container 居中而不是全 Angular 。 我需要将 .map div 拉伸(stretch)到浏览器窗口的右边界。 怎么可能?

最佳答案

您问题的答案在 main page bootstrap docs 上.

Use .container-fluid for a full width container, spanning the entire width of your viewport.

<div class="container-fluid">
  ...
</div>

关于html - 将 div 拉伸(stretch)到浏览器的一侧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42770568/

相关文章:

javascript - css 过渡背景变化不顺利淡入淡出

css - 悬停图像和文本更改

iPhone 5 无法正确显示网站的响应模式

java - thymeleaf 项目中的 Bootstrap 模式

html - dl 和 span 标签在一行

javascript - 为什么 Chrome 在使用小书签时更新正文而不是文本区域值?

html - 尝试悬停时子菜单消失

php - 如何使页脚对齐 1 行?

html - 有没有办法使用 bootstrap 将行中的 div 元素对齐到特定列中?

jquery - ASP.NET - Bootstrap 下拉导航仅在根页面上工作