欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-06-02 12:11:48
index代码: 参考资料:《菜鸟教程》 ......

index代码:

【代码笔记】Web-ionic-头部与底部
<!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>
【代码笔记】Web-ionic-头部与底部

 

参考资料:《菜鸟教程》