好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

让多个div在同一行显示的样式及html代码

以下为css样式:

复制代码

代码如下:


div{
m arg in-bottom: 10px;
clear:both;
word- br eak:break-all;
word-wrap:break-word;
}



复制代码

代码如下:


< PR e n am e="code" class="css"><!--width指定每个div占据的 宽 度--></pre>.custom_div{h ei ght: 23px;width: 50px;line-height: 23px;float: left;}
<pre></pre>

以下为ht ML 代码:
[code]
<pre name="code" class="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></pre>

总结

以上是 为你收集整理的 让多个div在同一行显示的样式及html代码 全部内容,希望文章能够帮你解决 让多个div在同一行显示的样式及html代码 所遇到的问题。

如果觉得 网站内容还不错, 推荐好友。

查看更多关于让多个div在同一行显示的样式及html代码的详细内容...

  阅读:28次