【发布时间】:2013-12-06 23:06:34
【问题描述】:
我有以下html
<div class="form-group " id="new_change_form_title">
<label class="pull-left" for="change_title">Title</label>
<div dir="auto" class=" pull-left explanation">A short sentence that describe what this is about</div>
<input class="" dir="auto" id="change_title" name="change[title]" required="required" size="30" type="text" />
</div>
我希望 .explanation 在底部对齐,而不是对齐到顶部的结果
如http://jsfiddle.net/xQwB5/1/中所见@
更改 line-height 确实有帮助,但如果解释很长,在小屏幕上会导致问题...
有没有办法让 .explanation 更接近input(更改结构以达到结果是可以的)
【问题讨论】:
-
是不是和这个类似:stackoverflow.com/questions/585945/…
-
不完全因为在那个问题上浮动没有使用
标签: html css vertical-alignment