Display a text in right-top-corner of Bootstrap panel-body

ε祈祈猫儿з 提交于 2021-01-28 21:34:17

问题


I show a news content into Bootstrap panel
left side is image and top-right side should be date of news

   <div class="panel-body">
        RenderImage(x.Image)
        <div class="pull-right"  style="margin-top: 0;>
            Date()
        </div>

But date content is not on top-right.


回答1:


Try wrapping the content inside row and column like this.

<div class="panel-body">
    <div class="row">
        <div class="col-xs-12">
            <div class="pull-right" style="margin-top: 0;>Date()</div>
            RenderImage(x.Image)
        </div>
    </div>
</div>


来源:https://stackoverflow.com/questions/40504108/display-a-text-in-right-top-corner-of-bootstrap-panel-body

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!