以下为css样式:
div{
margin-bottom: 10px;
clear:both;
word-break:break-all;
word-wrap:break-word;
}
.custom_div{height: 23px;width: 50px;line-height: 23px;float: left;}<!--width指定每个div占据的宽度-->
以下为html代码:
<div id="pid"> <div id="d1" class="custom_div">jelly1</div> <div id="d2" class="custom_div">jelly2</div> <div id="d3" class="custom_div">jelly3</div> </div>