简体   繁体   English

离子标记语言

[英]Ionic markup language

I have markup like this. 我有这样的标记。

<!DOCTYPE html>
<html>

<head>
    <title></title>
    <meta charset="utf-8" />
    <link href="css/ionic.css" rel="stylesheet" />
</head>

<body>
    <div class="bar bar-header bar-light">
        <h1 class="title">Header</h1>
    </div>

    <ion-content>
        <h1>Header</h1>
    </ion-content>

    <div class="bar bar-footer">
        <div class="title">Title</div>
    </div>

</body>

</html>

Observed: ioc-content is hidden under bar-header. 观察到:ioc-content隐藏在栏标题下。 What i'm doing wrong? 我做错了什么?

You need to add the class "has_header" 您需要添加类“ has_header”

<ion-content class="has-header">
    <h1>Header</h1>
</ion-content>

Correction you need to set it as: 更正您需要将其设置为:

<ion-content has-header="true">
    <h1>Header</h1>
</ion-content>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM