【发布时间】:2020-01-03 18:20:22
【问题描述】:
我有这个:
<div style="background-color: #25a0da; color: White; margin: 0">
<h1 style="margin: 0 20px; padding: 0; line-height: 52px;">
<span style="display: flex; justify-content: flex-start"><asp:Literal ID="litDateRange4" runat="server"></asp:Literal></span>
<span style="display: flex; justify-content: flex-end"> <asp:Literal ID="litPendingProfit" runat="server"></asp:Literal></span>
</h1>
</div>
我希望将第一个跨度对齐到左侧,将第二个跨度对齐到右侧,这可以正常工作,但是它们出现在不同的行上。
对 flex 很陌生。
【问题讨论】: