<div class="row">
<div>
<img id="image" class="col-md-2" src="img.png">
</div>
<div id="otherPart" class="col-md-4">
</div>
</div>
我正在使用 Twitter bootstrap 来分隔我的 html 对象,我想让它使我的 id="image" 是动态的并且能够根据图像的大小调整其大小。同时我仍然希望我的图像和“otherPart”之间有间距。我尝试从图像中删除 col-md-2 并在 css 中添加边距,但它没有用。