我有一个障碍:
<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 左侧拉图像,我需要让它响应。
最佳答案
试一试。
您不需要容器、行或列 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/