gpt4 book ai didi

CSS 左右对齐文本

转载 作者:行者123 更新时间:2023-11-28 09:30:34 27 4
gpt4 key购买 nike

<分区>

我有这个:

<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>

我希望第一个 span 向左对齐,第二个向右对齐,这是有效的,但它们出现在不同的行上。

对 flex 很陌生。

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com