尝试将“删除计划”文本对齐到右侧,而不将右侧的“东西”对齐。另外,不要在下一行显示“删除计划”,即在该特定行上包装段落标记并添加text-align:right的结果。还尝试了嵌入式红宝石的样式,也没有用
<div class= 'panel callout radius'>
<li style="list-style-type: none">
<%= 'stuff on the left' %>
<%= link_to 'Delete Schedule', session_schedule_path(session_schedule, to: request.fullpath), method: :delete,
data: { confirm: 'Are you sure you want to delete your schedule?'}, style: 'text-align: right' %>
</li>
</div>