overflow:hidden not working when using tables

前端 未结 4 703
北恋
北恋 2020-12-11 02:12

I’m having issues with long strings of text stretching out my tables and overflow:hidden does not seem to be doing what I exect. Here’s the sample code I am usi

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-11 02:48

    Not sure if it isn't supposed to be working for table cells, but ideally you don't really want to hide them anyway. I suggest you hyphenate long words, which you can do easily with the following lib (only take few lines of js to implement):

    http://code.google.com/p/hyphenator/

    Example:

    http://hyphenator.googlecode.com/svn/tags/Version%202.2.0/WorkingExample.html

提交回复
热议问题