zarte
V2EX  ›  问与答

一个 css 的奇怪现象

  •  
  •   zarte · Aug 15, 2019 · 1522 views
    This topic created in 2663 days ago, the information mentioned may be changed or developed.

    如图,求解决办法。除了设置成一行的。
    elementui table Imgur Imgur Imgur

    4 replies  •  2019-08-16 18:28:05 +08:00
    dimlau
    dimlau
    Aug 15, 2019
    1
    没看懂你想要什么结果。
    如果想不断行,为什么要调大 padding-right?
    zarte
    zarte
    OP
    Aug 15, 2019
    2
    @dimlau
    断行会导致第一行末尾变成省略号。貌似是因为字符宽度引起。
    dimlau
    dimlau
    Aug 15, 2019
    3
    依然没看懂你说的问题到底在哪。
    你想要什么结果?以及现在的问题是什么?

    让回答的人猜,效率就太低了。
    省略号是因为你写了 `overflow: ellipsis` 啊。
    zarte
    zarte
    OP
    Aug 16, 2019
    4
    @dimlau 我有加 word-break,正常应该是换行,但是有发现第一行仍然隐藏。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1874 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 09:54 · PVG 17:54 · LAX 01:54 · JFK 04:54
    ♥ Do have faith in what you're doing.