ionic css布局实例1:
基本布局: 标题/header、内容/content 和页脚/footer。
bar.bar-header - 声明元素为标题区
.bar.bar-footer - 声明元素为底部
.content . scroll-content- 声明元素为内容区
<!DOCTYPE html><html><head><title>ionic-CSS布局1</title> <meta charset="UTF-8"><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="../../lib/css/ionic.min.css"></head><body><div class="bar bar-header bar-dark"><h1 class="title">Header</h1></div><div class="scroll-content has-header"><h1 class="title">Content</h1></div><div class="bar bar-footer bar-calm"><h1 class="title">Footer</h1></div></body></html>