【发布时间】:2017-08-11 04:07:46
【问题描述】:
我正在尝试创建上面的设计。这是我到目前为止所取得的成就,但我使用的是固定高度。
https://jsfiddle.net/iDaniel19/b0LL5wj8/1/
<div class="container">
<div class="row event">
<div class="col-xs-3 col-sm-2 col-md-1 event-date">
<h3>9</h3>
<h3>May</h3>
</div>
<div class="col-xs-9 col-sm-10 col-md-1 no-padding-left event-info">
<div class="event-info-title">
<h4>Title</h4>
</div>
<div class="event-info-tl">
<div class="event-info-tl-text">
<p><span class="glyphicon glyphicon-time" aria-hidden="true"></span> Time</p>
<p><span class="fa fa-map-marker" aria-hidden="true"></span>Post code</p>
</div>
<div class="event-info-tl-icon">
<p class="event-icon"><span class="fa fa-chevron-right" aria-hidden="true"></span></p>
<div style="clear: both;"></div>
</div>
</div>
</div>
</div>
如何确保文字保持在一行而不显示在外面?
例如在上图中,底线(时间和位置)不适合移动设备,并且会在容器外中断
这是为该图像编码的正确方法吗?
【问题讨论】:
标签: html css twitter-bootstrap twitter-bootstrap-3