Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
390 views
in Technique[技术] by (71.8m points)

ionic4 - Ionic default positioning

I’m looking at a Ionic tutorial that is a year old, and I made with it a basic page HTML page with Ionic components :

<body>
    <ion-app>
        <ion-header>
            <ion-toolbar color="primary">
                <ion-title >Budget Planner</ion-title>
            </ion-toolbar>
        </ion-header>

        <io-content>
            <ion-card>
                <ion-card-header>New Expense</ion-card-header>
                <ion-card-content>
                    <ion-item>
                        <ion-label position="floating">Expense Reason</ion-label>
                        <ion-input type="text"></ion-input>
                    </ion-item>
                    <ion-item>
                        <ion-label position="floating">Expense Amount</ion-label>
                        <ion-input type="number"></ion-input>
                    </ion-item>
                </ion-card-content>
            </ion-card>
            
        </io-content>
        
        <ion-footer>
            <ion-toolbar>
                <ion-title>Footer</ion-title>
            </ion-toolbar>
        </ion-footer>
    </ion-app>
</body>

The result is this :

I've written HTML before and usually, it starts from the top. Here my content begins from the bottom (when I added the footer, it moved to being in the middle). Note : there's no css or anything that I've added to make so and in the tutorial I'm following, it isn't like it is for me

question from:https://stackoverflow.com/questions/65896242/ionic-default-positioning

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...