【发布时间】:2019-01-22 17:54:06
【问题描述】:
我想让一些文本与bootstrap panel 中面板内容的底部对齐。 (我使用的是引导程序 3.3.7)但是,使用
position: absolute;
bottom: 0;
将其与整个面板的底部对齐——位于页脚中。我希望它与面板内容 div 的底部对齐。但我不知道为什么会这样。
下面是正在发生的事情的图像,然后是我的面板 div 和“保存”样式的代码。我正在尝试将“保存”对齐到面板内容 div 的底部,但它进入了页脚。
<div class="panel panel-default">
<div class="panel-body editdiv my-textarea" contenteditable>
Panel content
<p class="savemet bottom">save</p>
</div>
<div class="panel-footer">
<input type="text" class="poetic" placeholder="e.g. jealousy or loss">
<div class="idea"></div>
</div>
</div>
...
.bottom {
position: absolute;
bottom: 0;
}
【问题讨论】:
-
请包含您对面板和内容的标记。
标签: html css twitter-bootstrap-3 vertical-alignment