本文介绍了使表格单元格内的2个按钮彼此相邻的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下代码:
I tried a few things with float and display but without success.
推荐答案
如果我在代码段中添加代码,则按钮彼此相邻,因此很难再现:
If I add that code in a snippet the buttons are next to each other, so it's hard to reproduce:
<table> <tr> <td> <button class="btn btn-primary btn-xs" ng-click="r.changeView('requests/edit/' + request.id)"> <i class="fa fa-pencil-square-o"></i>Button1 </button> <button class="btn btn-primary btn-xs" ng-click="r.changeView('requests/edit/' + request.id)"> <i class="fa fa-step-backward"></i> <i class="fa fa-step-forward"></i>Button2 </button> </td> </tr> </table>已显示为 inline-block 。
也许表不够宽;如果是,您可以尝试< td style ='white-space:nowrap'> 。这篇关于使表格单元格内的2个按钮彼此相邻的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!