开发者

How to let the string go to next line automatically

There is two Div in, which div have store some information. And two Div is side by side. I want to let the description automatic go to next line, if the string is too long. How can I do so? Here is the code:

<div class="round">  
    <div style="float:left;width:50%">
        <ul class = "round"> 
         <开发者_Python百科;li> Description: DFGHJKXCFGVHBJNESDRTYHUICFVGBHJNKMCFGVBHJN</li>    
        </ul>
    </div>      
    <div style="float:right;width:50%">
        <ul class = "round"> 
         <li> Description: ERTYUIOPOIUFKJHGFLKGKFGHCFGVBHJNKVBJNK</li>    
        </ul> 
    </div>      
</div>    


This does the trick:

.round {
    word-wrap: break-word;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜