【发布时间】:2018-08-06 18:42:48
【问题描述】:
这是我的 HTML/CSS 代码:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="container">
<div class="row">
<div class="col-1">
<img src="http://www.unixstickers.com/image/cache/data/stickers/jsfiddle/JSfiddle-blue-w-type.sh-600x600.png" style="width:20px;" />
</div>
<div class="col-11">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span>
<span>Ut luctus consectetur dapibus.</span>
<span>Phasellus vestibulum dui non lacus ultricies egestas.</span>
<span>Aenean eros lorem, tincidunt eget eros nec, suscipit egestas elit</span>
</div>
</div>
</div>
请看我的 jsfiddle:https://jsfiddle.net/na6pd9he/5/
这是正确的行为:
当我的尺寸非常小时,div 会下降:
为什么,我怎样才能避免这种情况?
【问题讨论】:
标签: css bootstrap-4