css 横排 实现代码
发布时间:2016-12-27 来源:查字典编辑
摘要:效果预览:css:html:top0top1top2top3bottom0bottom1bottom2bottom3或者来个更简单的:.fl...
效果预览:
css:
<style type="text/css">
<>
</style>
html:
<div>
<div>top0</div>
<div>top1</div>
<div>top2</div>
<div>top3</div>
</div>
<div>
<div>bottom0</div>
<div>bottom1</div>
<div>bottom2</div>
<div>bottom3</div>
</div>
或者来个更简单的:
<style>
.float_left{
text-align:left;
height: 20px;
width: 25%;
float: left;
}
</style>
<div class = "float_left">asdasd</div>
<div class = "float_left">asdasd</div>
<div class = "float_left">why</div>