简体   繁体   中英

Jquery DataTable Column Width Issue

I am using jquery datatable and its working fine the problem i am facing is that i have a column named Email inside my dataTable . Now what happens is that when some one put input into email address or anyother column like this

abadc@gmail.comabadc@gmail.comabadc@gmail.comabadc@gmail.comabadc@gmail.comabadc@gmail.comabadc@gmail.comabadc@gmail.comabadc@gmail.comabadc@gmail.com

then my DataTable look weird i know the reason that there is no space between these email address but is there any other hack like can we do it using css to force column to show multi line if it cross desired length.

Try the CSS word-wrap property to force words to break: http://www.w3schools.com/cssref/css3_pr_word-wrap.asp

You also might need to set your table-layout to fixed for this to work: http://www.w3schools.com/cssref/pr_tab_table-layout.asp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM