nowrap

    12热度

    2回答

    Chrome的最近更新使用text-overflow: ellipsis;在overflow: hidden元素上打破white-space: nowrap。如何解决,如果没有上name类中添加硬编码的宽度.. <h1>problem</h1> <div class="container"> <div class="name"> <div class="firstname">

    0热度

    1回答

    我尝试将属性“white-space:nowrap”应用到span标签。它适用于所有浏览器,但在IE和Edge中它打破了单词。我必须在同一行显示我的所有内容。 我试图设置属性“break-word:nowrap”,但它似乎不工作。 我该如何解决我的问题与CSS?

    1热度

    2回答

    好吧,这是很难解释,我有两个元素,一个浮动DIV和非可包装的DIV,它的HTML看起来是这样的: <div id='page'> <div id='left'> some information </div> <div id='center'> do not break this </div> </div> 这是CSS: #cent

    0热度

    3回答

    当我在长字上有ellipsis时,它将id:和[ ]分解成不同的行。我似乎无法将它们全部放在一起。我试过white-space: nowrap和display: inline-block。有任何想法吗? https://jsfiddle.net/b35m449x/4/ HTML <div class="container">id: [<div class="trunc">userrrrrrrrrr

    5热度

    1回答

    我试图设置带三列的flexbox布局。左列和右列具有固定的宽度。中间的列有流体宽度来填充可用空间,但是它包含一个长文本,不应该打包并使用省略号。 不幸的是,未包裹的文本不能提供列的可用空间并将整个布局推送到父元素的边界之外。 img { max-width: 100%; } #container { display: flex; max-wid

    0热度

    2回答

    如何防止Mozilla Firefox中的URL换行符。使用CSS white-space:nowrap;?其他解决方案?感谢名单。 http://codepen.io/anon/pen/VeNJKW .container { width: 275px; padding: 10px; border: 1px solid black; }

    0热度

    2回答

    我有代码看起来像这样有点: <div class="some-class"> <span>NameOfThing</span> <div class="block-or-inline"> <span style="white-space: nowrap">ValueOfThing1</span> <span style="white-space: now

    0热度

    1回答

    我有一个问题,运行里面的TextBlock 当我创建的TextBlock像这样没有包装: <Window x:Class="Test.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx

    2热度

    3回答

    这是我第一次张贴在这个论坛上,希望它会没事的:) 我深化发展的Android应用程序在我的城市公共交通。 Here is what I have [ |short destination ||next departure| ] [ |way too long dest...||next departure| ] Here is what I want: [ |short destinatio

    1热度

    1回答

    我目前正在构建一个电子邮件模板。该模板包含排列在一起的USP。这是我使用的代码: <td width="100%"> <span style="white-space: nowrap;"> <img src="checkmark.png" />  [text name="USP1"] </span>    &