html5 css3实现图中结构

 

 

<!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>

 

相关文章:

  • 2021-06-21
  • 2021-08-16
  • 2021-12-05
  • 2021-12-12
  • 2021-05-23
  • 2022-12-23
  • 2021-04-27
  • 2021-09-28
猜你喜欢
  • 2021-12-27
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2021-08-29
  • 2021-10-03
相关资源
相似解决方案