码迷,mamicode.com
首页 > Web开发 > 详细

CSS3 利用盒子模型进行横排

时间:2014-08-04 10:45:46      阅读:299      评论:0      收藏:0      [点我收藏+]

标签:style   ar   html   div   htm   type   c   ad   

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>Document</title>

</head>

 

<style>

 

body{display:-webkit-box; -webkit-box-orient:horizontal;}

 

div{height:100px;}

.div1{background:orange;}

.div2{background:pink;}

.div3{background:red;}

 

</style>

 

<body>

 

<div class="div1"> 盒子1 </div>

<div class="div2"> 盒子2 </div>

<div class="div3"> 盒子3 </div>

 

</body>

 

</html>

CSS3 利用盒子模型进行横排,布布扣,bubuko.com

CSS3 利用盒子模型进行横排

标签:style   ar   html   div   htm   type   c   ad   

原文地址:http://www.cnblogs.com/zion0707/p/3889405.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!