【代码笔记】Web-ionic-头部与底部

index代码:

复制代码
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>Todo</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
    <link href="lib/ionic/css/ionic.css" rel="stylesheet">
    <script src="lib/ionic/js/ionic.bundle.js"></script>
    <!-- 在使用 Cordova/PhoneGap 创建的 APP 中包含的文件,由 Cordova/PhoneGap 提供,(开发过程中显示 404) -->
    <script src="js/app2.js"></script>
    <script src="cordova.js"></script>
</head>

<body>
    <!--头部样式-->
    <div class="bar bar-header bar-light">
        <h1 class="title">bar-light</h1></div>
    <div class="bar bar-header bar-positive">
        <h1 class="title">bar-positive</div>
    <div class="bar bar-header bar-energized">
        <h1 class="title">bar-energized</h1></div>
    <div class="bar bar-header bar-assertive">
        <h1 class="title">bar-assertive</h1></div>
    <div class="bar bar-header bar-royal">
        <h1 class="title">bar-royal</h1></div>
    <div class="bar bar-header bar-dark">
        <h1 class="title">bar-dark</h1></div>
    <div class="bar bar-header bar-calm">
        <h1 class="title">bar-calm></h1></div>

    <!--副标题-->
    <div class="bar bar-header">
        <h1 class="title">Header</h1>
    </div>
    <div class="bar bar-subheader">
        <h2 class="title">sub Header</h2>
    </div>

    <!--底部-->
    <div class="bar bar-footer bar-balanced">
        <div class="title">Footer</div>
    </div>
    <div class="bar bar-footer">
        <button class="button button-clear">Left</button>
        <div class="title">Title</div>
        <button class="button btton-clear">Right</button>
    </div>
    <div class="bar bar-footer">
        <button class="button button-clear pull-right">Right</button>
    </div>
</body>

</html>
复制代码

 

参考资料:《菜鸟教程》

posted @ 2018-07-14 08:48  花儿迎风笑  阅读(147)  评论(0编辑  收藏  举报