word-wrap:break-word css property not working on I

2019-09-07 15:04发布

CSS property word-wrap:break-word is not working on IE8 standard mode but same is working on IE 7 and other browsers.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<div style="width:100px;word-wrap:break-word;">
<div style="border:1px solid red; width:100px;word-wrap:break-word;">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>
</div>

1条回答
2楼-- · 2019-09-07 15:56

Try this:

-ms-word-break: break-all;
    word-break: break-all;
查看更多
登录 后发表回答