zarte
V2EX  ›  问与答

一个 css 的奇怪现象

  •  
  •   zarte · Aug 15, 2019 · 1273 views
    This topic created in 2488 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
        1
    dimlau  
       Aug 15, 2019
    没看懂你想要什么结果。
    如果想不断行,为什么要调大 padding-right?
    zarte
        2
    zarte  
    OP
       Aug 15, 2019
    @dimlau
    断行会导致第一行末尾变成省略号。貌似是因为字符宽度引起。
    dimlau
        3
    dimlau  
       Aug 15, 2019
    依然没看懂你说的问题到底在哪。
    你想要什么结果?以及现在的问题是什么?

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