Long word wrap in nested tables

后端 未结 3 566
予麋鹿
予麋鹿 2021-01-28 07:02

I\'m trying to wrap a long word. I have seen this post : How to prevent long words from breaking my div?

It works great in a simple case like this :

.wra         


        
3条回答
  •  梦毁少年i
    2021-01-28 07:50

    I think this is what you are looking for.

    WORKING DEMO

    The HTML:

    
    

    The Logic:

    The div and td have different display characteristics. You need to make your div which is nested inside the td to change its display to, for instance here inline-block with a fixed width to achive what you are looking for.

    Hope this helps.

提交回复
热议问题