gpt4 book ai didi

html - td 数据不是单行输入

转载 作者:太空宇宙 更新时间:2023-11-03 21:32:18 25 4
gpt4 key购买 nike

在我的网页中,td 不是单行显示的
XYZ 的每周报告分为两行,我需要一行为什么标签内容在下一行?

对/对 每周报告 测试元素

desired o/p

Weekly Report for <LabelData>


<td align="center" style="width: 100%; color: black; font-size: 12pt; font-`enter code here`family: Trebuchet MS;
font-style: italic; background: #E4AFC1; height: 5px;white-space:nowrap">
<b>Weekly Report for <asp:Label ID="lblPro" runat="server"></asp:Label></b>
</td>

最佳答案

使用white-space: nowrap

<td style="white-space: nowrap; width: 100%; color: black; font-size: 12pt; font-family: Trebuchet MS; font-style: italic; background: #E4AFC1; height: 50px;">
<b>Weekly Report for <asp:Label ID="lblPro" runat="server"></asp:Label></b>
</td>

关于html - td 数据不是单行输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28627141/

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