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

div+css:两个div并排等高 (table-cell)

时间:2016-12-07 14:05:53      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:char   center   tab   ext   body   image   tle   div+css   com   

两个div并排等高

 1 <!DOCTYPE html>
 2 <html>
 3 <head>
 4     <meta charset="utf-8">
 5     <title></title>
 6     <style>
 7         .left,
 8         .right {
 9             display: table-cell;
10             border: 1px solid #f40;
11         }
12     </style>
13 </head>
14 <body>
15     <div class="left">
16         left div
17         <br/>
18         <br/>
19         <br/>
20         <br/>
21         <br/>
22     </div>
23     <div class="right">
24          right div
25     </div>
26 </body>
27 </html>

技术分享

 

div+css:两个div并排等高 (table-cell)

标签:char   center   tab   ext   body   image   tle   div+css   com   

原文地址:http://www.cnblogs.com/ooo0/p/6140719.html

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