我想将文本放置在 div 中,以便文本行保持在同一行并且不会换行。
我尝试的是nwrp
通过添加一些示例文本来将属性添加到 div,但如下面的屏幕截图所示,文本换成了多行:
<div runat="server" id="OfferStatusString" class="col-xs-3 col-sm-3 col-md-2 nwrp"><p><strong>This text is strong, testing that the text doesn't wrap to the next line using nwrp property of bootstrap. Text should stay on the same line on the window</strong>.</p></div>
有谁知道如何指定 div 文本定位以保持在同一行?
此 div 包含在 Repeater 控件中,如下所示:
<asp:Repeater ID="repeaterApplicationItems" runat="server" OnItemDataBound="repeaterApplicationItems_ItemDataBound" >
<ItemTemplate>
<div class="row applicationitems mrgn lhgt">
<div runat="server" id="OfferStatusString" class="col-xs-3 col-sm-3 col-md-2 nwrp"><strong><%# (string)Eval("ApplicationItemStatusString").ToString() %></strong></div>
</div>
</ItemTemplate>
</asp:Repeater>