Word-wrap在Internet Explorer中不工作 [英] Word-wrap not working in Internet Explorer

查看:155
本文介绍了Word-wrap在Internet Explorer中不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用浏览器模式:IE9兼容性视图和文档模式:IE7标准时,使用 word-wrap:break-word 完全精细。但是,当我更改文档模式:IE9标准时,它不工作。
我也尝试使用 -ms-word-wrap:break-word ,但它给我相同的结果。

When I'm using word-wrap:break-word with Browser Mode: IE9 Compatibility View and Document Mode: IE7 standards its working perfectly fine. However when I change the Document Mode: IE9 standards, its not working. I've also tried using -ms-word-wrap:break-word however its giving me the same result.

文档类型定义:DTD / xhtml1-transitional.dtd

Document Type Definition: DTD/xhtml1-transitional.dtd

任何人都可以告诉我为什么会这样,如果有任何解决方法

Can anyone tell me why is it so and if there is any workaround to cope up with it ?

推荐答案

您需要

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

并放置 word-wrap 表,td,th 不能插入 span

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

这篇关于Word-wrap在Internet Explorer中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆