gpt4 book ai didi

jsf-2 - 如何设置 of JSF2. 0的宽度?

转载 作者:行者123 更新时间:2023-12-02 00:29:21 25 4
gpt4 key购买 nike

代码:

<div>
<h:outputText value="DelivertyType: " style="width:135px"/>
<h:inputText value="#{newConsign.consign.faId}" style="width:135px"/>
</div>

h:outputText 的 style="width:135px"不起作用。

最佳答案

outputText 将生成如下所示的跨度:

<span style="width: 135px;">DelivertyType:</span>

“宽度”属性不能应用于 SPAN 等内联元素。 (只能应用于 block 样式元素)。

尝试将 outputText 包装在 div 中,并在 DIV 上应用样式。

关于jsf-2 - 如何设置<h :outputText> of JSF2. 0的宽度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4311619/

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