开发者

How to achieve word-wrap: break-word behaviour in IE 6.0?

开发者 https://www.devze.com 2023-03-27 11:27 出处:网络
word-wrap doesn\'t seem 开发者_Python百科to be supported in IE 6.0, judgying by IETester, although I read in a msdn article that is is supported.

word-wrap doesn't seem 开发者_Python百科to be supported in IE 6.0, judgying by IETester, although I read in a msdn article that is is supported.

How to achieve word-wrap: break-word behaviour in IE 6.0? e.g. using JQuery?

Thanks


Just checked in my IE6 with this code:

<!DOCTYPE html>
<html>
<head>
    <title></title>

<style type="text/css">
<!--
p{
  width:100px;
  word-wrap: break-word;
}
-->
</style>

</head>

<body>
    <p>Loremipsumdolorsitamet,consecteturadipiscing</p>
</body>
</html>

And it works fine. See the pic below:

How to achieve word-wrap: break-word behaviour in IE 6.0?


word-wrap: break-word started as an IE proprietary property/attribute and has been available since IE 5.5 (source). It was added to the CSS3 spec.

0

精彩评论

暂无评论...
验证码 换一张
取 消