css - 如何在 Bootstrap 中定位 img 元素

标签 css twitter-bootstrap css-position

我有一个障碍:

<section id="why">
<div class="container">
  <div class="row">
    <div class="col-xs-12">
     <img src="img/image.png" alt="image">
    </div>
  </div>
</div>

.container 有左右边距,我无法将图像放在 body 的左侧。 我需要在 body 左侧拉图像,我需要让它响应。

it looks like this

最佳答案

试一试。

您不需要容器、行或列 div。

<section id="why" class="text-left">
    <img src="img/image.png" alt="image">
</section>

关于css - 如何在 Bootstrap 中定位 img 元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24798597/

相关文章:

javascript - 如何更改滚动条上的导航栏 css 样式?

css - Bootstrap 3 : navbar link hover effect w/border issue

html - 如何使用 bootstrap 将我的 div 居中

css - order 属性如何作用于 flex 容器的绝对定位子容器?

CSS Overflow auto 及其工作原理

css - flex 中的 Angular 元素在成为组件后没有固定的高度

html - 如何在 CSS 中添加新字体以进行本地测试

javascript - 如何使用 jQuery 悬停、更改、切换图片

css - 如何放置从 `.col-md-4` 到屏幕末尾的图像?

html - Bootstrap 3 按钮的按下按钮效果