English 中文(简体)
Ionic - Content
  • 时间:2025-03-14

Ionic - Content


Previous Page Next Page  

Almost every mobile app contains some fundamental elements. Usually those elements include a header and a footer that will cover the top and the bottom part of the screen. All the other elements will be placed between these two. Ionic provides ion-content element that serves as a container that will wrap all the other elements that we want to create.

This container has some unique characteristics, but since this is a JavaScript based component which we will cover in the later part of this tutorial.

<span class = "bar bar-header"> 
   <h1 class = "title">Header</h1> 
</span>
 
<span class = "pst"> 
   <label class = "item item-input"> 
      <input type = "text" placeholder = "Placeholder 1" /> 
   </label>
   
   <label class = "item item-input"> 
      <input type = "text" placeholder = "Placeholder 2" /> 
   </label> 
</span>

<span class = "bar bar-footer"> 
   <h1 class = "title">Footer</h1> 
</span>
Advertisements