我使用引导来显示一些面板。在这些面板的标题栏中,我显示一个关闭面板的按钮。它看起来很好,直到标题栏中的文本太长,并且按钮放置在一排。使用bootstrap将按钮固定在面板标题的右上方
制成提琴说明
https://jsfiddle.net/fiddlejan/vt7tuj8b/
正如你可以看到十字图标放在旁边的文本的第二行。我希望它保持固定在面板的右上角。
下面是HTML什么样子:
<!-- childeren -->
<div class="panel-group">
<div class="panel panel-info fadein fadeout" ng-repeat="p in panels">
<div class="panel-heading" data-toggle="collapse" data-target="#test_{{p}}" style="cursor:pointer">
<h4 class="panel-title">
open/close - test test test test test test test test test test test test test test test test test test test test - {{p}}
<span class="glyphicon glyphicon-remove" ng-click="close(p, $event)"></span>
</h4>
</div>