ionic中 .col-{width-percent} : metro风格
作者:本站编辑 发布时间:2015-11-24 来源:本站原创
点击数:
.col-{width-percent} : metro风格
windows phone的metro风格在信息展示方面有很大的优势,虽然携程的APP 没有突出这一点:-( :
通过定制栅格的列宽,我们可以简单地实现类似的界面。
思考一下,这个UI能够使用ionic的栅格实现吗?
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width,height=device-height">
<link rel="stylesheet" type="text/css" href="ionic.min.css">
</head>
<body>
<div class="scroll-content">
<div class="row">
<div class="col col-50 positive-bg light">
<div>机票</div>
<i class="icon ion-plane"></i>
</div>
<div class="col col-25 assertive-bg light">
<div>火车票</div>
<i class="icon ion-android-train"></i>
</div>
<div class="col col-25 calm-bg light">
<div>用车</div>
<i class="icon ion-model-s"></i>
</div>
</div>
<div class="row">
<div class="col calm-bg light">
<div>酒店</div>
<i class="icon ion-home"></i>
</div>
<div class="col stable-bg energized" >
<i class="icon ion-person"></i>
<div>我的携程</div>
</div>
</div>
<div class="row">
<div class="col balanced-bg light">
<div>旅游</div>
<i class="icon ion-image"></i>
</div>
<div class="col energized-bg light">
<div>景点门票</div>
<i class="icon ion-pricetag"></i>
</div>
<div class="col royal-bg light">
<div>攻略社区</div>
<i class="icon ion-person-stalker"></i>
</div>
</div>
</div>
</body>
</html>