我正在尝试使用Bootstrap 3创建一个不会折叠或包装文本的Navbar .我希望文本简单地被剪切掉(或省略)而不是包裹 - 因此Navbar保持在一条线上而不会垂直扩展.(此Navbar将用于显示具有单个右对齐菜单的当前视图位置)
像这样的东西:
Trying to get this long line of text to not wrap even if too wide for the view to display. Trying to get this long line of text to not wrap even if too wide for the view to display. Menu
Trying to get this long line of text to not wrap even if too wide for the view to display. Trying to get this long line of text to not wrap even if too wide for the view to display.
Menu
如图所示,我一直在愚弄CSS浮动,溢出,空白设置,似乎无法得到正确的组合.此外,我使用两个navbar-header元素来避免崩溃,但如果有更好的方法,我会对其他选项持开放态度.
谢谢您的帮助.