css - 如何控制zkoss中列表项的流

标签 css zk

谁能指导我如何控制列表项的溢出。在带有客户简要说明的代码标签“操作说明”中,我在恢复窗口时应用了 maxlength =“40”,然后“操作说明”显示了两行或更多行,我希望它仅在单行中

<east id="eastcr" width="70%" autoscroll="true" visible="false" style="overflow:auto">
<groupbox>
    <caption label="Select Account"></caption>
    <separator></separator>
    <listbox id="lstbx" style="overflow:auto" mold="paging">
        <listhead id="lsthd" sizable="true" >          
        <listheader id="lsthd1" label="Sr No" align="center" width="5%" sort="auto"/>
        <listheader label="Account Number" align="center" width="15%" sort="auto"/>  
        <listheader label="Account Name" align="left" width="25%"  sort="auto" maxlength="20"/> 
        <listheader label="Operation Instruction" align="left" width="39%" sort="auto" maxlength="40"/>  
        </listhead>       
    </listbox>
</groupbox> </east>

最佳答案

你可以使用下面的样式

style="white-space: nowrap;"

下面是什么意思

nowrap Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a
tag is encountered

关于css - 如何控制zkoss中列表项的流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35556101/

相关文章:

javascript - 带有 jquery Accordion 的 AngularJS ng-table 固定 header

html - 如何响应式地使带有破折号的单词转到下一行而不是中断?

html - 如何去除这张 table 上的双边框?

java - 如何使用zk hbox数组?

mvvm - ZK MVVM : Passing parameter to another viewmodel using <include>

java - ZK MVVM 验证消息自动绑定(bind)?

javascript - 使用 javascript 内联表单标签和字段

html - 如何在移动设备的 Bootstrap 中在中心显示 Logo ?

java - 将渲染转换为 Zul?

java - ZK NotifyChange 列表中的单个记录而不是整个列表?