标签:style blog http ar color sp on div 问题
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> html,body{ height: 100%; } body{ margin: 0; } .box{display:-webkit-box;display:-moz-box;display:-o-box;display:-ms-box;display:box;width:600px;height:180px;margin:0;padding:0;list-style:none;} #box{ height: 100%;-webkit-box-orient:vertical;-moz-box-orient:vertical;-o-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical; } .box li:nth-child(1){ height: 100px; background:#666; } .box li:nth-child(2){-webkit-box-flex:2;-moz-box-flex:2;-o-box-flex:2;-ms-box-flex:2;box-flex:2;background:#999; } .box li:nth-child(3){ height: 100px; background:#ccc; } </style> </head> <body> <ul id="box" class="box"> <li>1</li> <li>2</li> <li>3</li> </ul> </body> </html>
标签:style blog http ar color sp on div 问题
原文地址:http://www.cnblogs.com/lixiaoyaoslove/p/4110530.html