Word-wrap not working in Internet Explorer

和自甴很熟 提交于 2019-12-03 23:22:24

you need to have

table {
    width:100%;
    table-layout:fixed;
}

and put word-wrap in table,td,th not into span

http://jsfiddle.net/d6VsD/7/

applying word-wrap property to parent of the concerned element will resolved the problem in IE9.

try it this way

  .table tr td { 
               word-wrap: break-word;
               word-break: break-all;
               }

In my case, IE did not respect the word break style until I made the span render as inline-block.

.selector{
    display: inline-block;
    word-break: break-all;
    overflow-wrap: break-word; /* For other browsers*/
}
Anusha Medicherla
-ms-word-break: break-all;

works in > IE9

Adding -ms-word-break: break-word; worked for me.

it should work, .your_class_name{word-break:break-word;}, i have tested it in ie7 - ie9 and it breaks the word...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!