css 两个div在一行解决办法

要做到两个div在一行,就得利用float或设置总宽度之和等于小大div

<style type=”text/”>
<!–
.onediv{width:90px; height:50px;float:left;margin:0 0 0 5px; border:1px #000 solid; background:#ff0000}
.twodiv{width:90px; height:50px;float:left;margin:0 0 0 5px; border:1px #000 solid; background:#99cc00}
–>
</style> 

<div class=”onediv”></div><div class=”twodiv”></div>

 

 

css 两个div在一行解决办法

相关文章:

你感兴趣的文章:

标签云: