在table里面是可以的
在div里面,据说IE是可以的,其它的浏览器不行,我试过,safri和chroma是可以的
代码如下
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style >
table{table-layout: fixed;}
td{word-break: break-all; word-wrap:break-word;}
div{word-break: break-all; word-wrap:break-word;}
</style>
</head>
<body>
<dir style="width:20px;">
j d dhfa dfd sdf w df ß
</dir>
<table>
<tr>
<td style="width:20px;">
jjjjjjkjkjkjkjkjhyioijijijjjjjjkjkjkjkjkjhyioijijijjjjjjkjkjkjkjkjhyioijijijjjjjjkjkjkjkjkjhyioijijijjjjjjkjkjkjkjkjhyioijijijjjjjjkjkjkjkjkjhyioijijijjjjjjkjkjkjkjkjhyioijijijjjjjjkjkjkjkjkjhyioijiji
</td>
</tr>
</table>
</body>
</html>