3

如何将文本包装在一个 3 列的 div 中?我试过这个,但它不工作。

<pre>
  #about-text{float:left;word-wrap:break-word;width:100px;height:150px;}
</pre>

例子

4

2 回答 2

5
#about-text{
   width:700px;
   height:200px;
   -webkit-column-count: 3;
      -moz-column-count: 3;
           column-count: 3;
  -webkit-column-gap: 10px;
     -moz-column-gap: 10px;
          column-gap: 10px; 
}

一个演示:http: //jsfiddle.net/mwY5u/

阅读有关列的更多信息

于 2013-05-02T23:01:04.920 回答
0
   style="word-break: break-all;"

使用分词来分隔文本

于 2016-02-24T10:00:46.263 回答