您的位置:首页 > 移动开发 > WebAPP

(box-flex) webapp开发信息流的一种方式

2016-04-20 12:03 477 查看
上图:



<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>box-flex</title>
</head>
<body>

<style>
*{padding: 0;margin: 0}
.test_box {
width: 800px;
margin:0 auto;
text-align: center;

display: -moz-box;
display: -webkit-box;
display: box;
}
.list{height: 100px;color: #fff}

.list_one{
background: blue;
width: 200px;
}

.list_two {
background: red;
-moz-box-flex: 1;
-webkit-box-flex: 1;
box-flex: 1;
}

</style>
<div class="test_box">
<div class="list list_one">img</div>
<div class="list list_two">content</div>
</div>
</body>
</html>

更多相关信息:
http://www.zhangxinxu.com/wordpress/2010/12/css-box-flex属性,然后弹性盒子模型简介/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: