离子预览& iOS预览问题

发布于 2025-02-06 17:10:52 字数 1776 浏览 0 评论 0原文

我在这里与0clue有一个问题。我目前正在使用离子角度开发应用程序。 Web版本上的预览完全很好,看起来不错参考图像

但是,当我将其部署到iOS中时,按钮形状已关闭,并且有一个白色结构阻塞了标题参考图像

我是该应用程序发展世界的新手,请对此感到愚蠢。

有人可以指导我朝正确的方向引导吗?

ion-toolbar {
    --background: #383E56;
    height: 102px;
}
  
ion-header ion-toolbar:last-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
}

.searchbar {
    width: 352px;
    height: 42px;
    background: #C2C3C8;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.6);
    border-radius: 90px;
    -webkit-position: sticky;
    position: sticky;
    display: flex;
    justify-content: flex-end;
    padding: 3px 3px;
    margin: auto;
    margin-top: 35px;
}

.btn2{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-sizing: border-box;
    background: #F69E7B;
    box-shadow: 0.5px 0.5px 0.5px rgb(0 0 0 / 25%);
    //position
    position: absolute;
    top: 3px;
    left: 313px;
    //vector size & position 
    font-size: 27px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    justify-content: center;
}
<ion-header>
  <ion-toolbar>

    <div class="searchbar">
      
      <button class="btn2" (click)="toMorePage()">
        <ion-icon name="arrow-back-outline"></ion-icon>
      </button>
      
    </div>

  </ion-toolbar>
</ion-header>

<ion-content>

</ion-content>

I have an issue here with 0clue what is going on. I am currently developing an application using ionic angular. The preview on the web version is totally fine and looks good reference image.

But when I deploy it into iOS the button shape is off and there is a white structure blocking part of the header reference image.

I am new to the app developing world, please bear with my stupidity on this.

Can someone guide me in the right direction, please?

ion-toolbar {
    --background: #383E56;
    height: 102px;
}
  
ion-header ion-toolbar:last-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
}

.searchbar {
    width: 352px;
    height: 42px;
    background: #C2C3C8;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.6);
    border-radius: 90px;
    -webkit-position: sticky;
    position: sticky;
    display: flex;
    justify-content: flex-end;
    padding: 3px 3px;
    margin: auto;
    margin-top: 35px;
}

.btn2{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-sizing: border-box;
    background: #F69E7B;
    box-shadow: 0.5px 0.5px 0.5px rgb(0 0 0 / 25%);
    //position
    position: absolute;
    top: 3px;
    left: 313px;
    //vector size & position 
    font-size: 27px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    justify-content: center;
}
<ion-header>
  <ion-toolbar>

    <div class="searchbar">
      
      <button class="btn2" (click)="toMorePage()">
        <ion-icon name="arrow-back-outline"></ion-icon>
      </button>
      
    </div>

  </ion-toolbar>
</ion-header>

<ion-content>

</ion-content>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文