小编Saj*_*ith的帖子

如何将图像与离子中的页面中心对齐

我想将图像(徽标)与页面的中心(水平和垂直)对齐?

<ion-view hide-nav-bar="true">
<ion-content class="backgound-red ">
<section class = "home-container">
      <div class="row icon-row">

        <div class="col">
                    <h1 class="text-white text-center">My Application </h1>
          <h4 class ="text-white text-center ">version 1.0.0</h4>
        </div>
    </div>

    <div class="row row-center" >
        <div class="col text-center" >
            <img alt="Logo" height="100" src="img/logo.png" >
        </div>
      </div>
    <div class="row icon-row">

        <div class="col ">
            <a class="text-white text-center" href="#" onclick="window.open('http://members.000webhost.com/login.php?'); return false;">
              <h5 class ="text-white text-center ">access server</h5></a>
        </div>        
    </div>
    </section>
</ion-content>
Run Code Online (Sandbox Code Playgroud)

我想要的布局,图像应该自动对齐移动屏幕.(标签,手机)

布局

html css ionic

8
推荐指数
1
解决办法
2万
查看次数

如何将徽标置于离子条中心

我想将我的徽标放在离子栏中.我该怎么做 ?(它总是显示在左侧)我想要这样

中心标志屏幕

这是我的离子代码:

 <ion-nav-bar class="bar bar-header bar-assertive">

        <ion-nav-back-button>
        </ion-nav-back-button>
        <ion-nav-buttons side ="Center">
        <div class="title"> <img alt="Company Logo" height="40" src="img/logo.png"></div>
        </ion-nav-buttons>
        <ion-nav-buttons side="right">
            <button class="button button-icon button-clear ion-navicon" menu-toggle="right">
            </button>
        </ion-nav-buttons>

    </ion-nav-bar>
Run Code Online (Sandbox Code Playgroud)

ionic ionic-view

4
推荐指数
1
解决办法
8415
查看次数

标签 统计

ionic ×2

css ×1

html ×1

ionic-view ×1