首页 > Web开发 > 详细

html5 css3实现图中结构

时间:2014-03-31 08:45:35      阅读:604      评论:0      收藏:0      [点我收藏+]

bubuko.com,布布扣

 

 

bubuko.com,布布扣
<!DOCTYPE html>
<html lang="en" >
 <head> 
        
        <title>demo</title>
        
        <style type="text/css">
              *{
                margin:0;
                padding:0;                
               }
           .box {
                 width: 100%;
                 background: green;
                 display: box;
                 overflow: hidden;
                 display:-moz-box; /* Firefox */
              display:-webkit-box; /* Safari and Chrome */
                 -webkit-box-orient:horizontal;
           }
            .item {
               -webkit-box-flex:1;
               -moz-box-flex:1;
             box-flex:1;
             height: 60px;
             margin: 10px;
             background: red;
           }
           .item:first-child {
               -webkit-box-flex:0;
               
             width: 200px;
             margin: 10px;
             background: yellow;
           }
           
             .item:last-child {
               
             margin: 10px;
             background-color: blue;
           }
        </style>
 </head>
 <body >
        <div class="box">
                <div class="item">column 1</div>
                <div class="item">column 2</div>
                <div class="item">column 3</div>
        </div>
        
 </body>
</html>
bubuko.com,布布扣

html5 css3实现图中结构,布布扣,bubuko.com

html5 css3实现图中结构

原文:http://www.cnblogs.com/skylar/p/3634948.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!