gpt4 book ai didi

button - ionic 按钮的开始和结束语法没有意义

转载 作者:行者123 更新时间:2023-12-04 09:03:13 24 4
gpt4 key购买 nike

ion-buttons 有两个问题。

  • ionic 文档仅显示 ion-buttons 元素的用法,除了可以从示例中推断出的内容之外,没有任何实际解释。
  • 让我惊讶的是,关闭标签对我来说似乎放在错误的位置。

  • 当我在文档上看到此消息时,我想知道这是否是一个错误,但是我也在堆栈中的代码示例中也看到了这一点。像这个:
    <ion-header>
    <ion-navbar primary>
    <ion-buttons start> **// here it starts.**
    <button menuToggle>
    <ion-icon name="menu"></ion-icon>
    </button>
    </ion-buttons> **//Why does ion-buttons close here?**

    <ion-title>
    My Page
    </ion-title>

    <ion-buttons end> **// END here?**
    <button ion-button icon-only>
    <ion-icon name="search"></ion-icon>
    </button>
    </ion-buttons> **// then close AGAIN here when there is no companion open tag?**
    </ion-navbar>
    </ion-header>

    最佳答案

     <ion-buttons start>       **// here it starts.**

    实际上,这里的 start并不是 ionic 按钮的开始。这里 start根据其 documentation表示。只是帮助做按钮对齐。

    Aligns the element at the start based on platform. iOS goes left, Android is the first item on the right



    请参阅 ion-buttons属性部分。
    </ion-buttons>  **//Why does ion-buttons close here?** 

    在这里实际上关闭了以前打开的 ionic 按钮,即 <ion-buttons start>就像我们通常喜欢的 <ion-buttons> </ion-buttons>
     <ion-buttons end> **// END here?** 

    这里 end的意思不是 ion-buttons 的结尾。根据他们的 documentation。只是帮助做按钮对齐。

    Aligns the element at the end based on the platform. iOS goes right, Android is the last item on the right



    请参阅 ion-buttons属性部分。
    </ion-buttons> **// then close AGAIN here when there is no companion open tag?**

    再次,我们将关闭先前打开的 <ion-buttons end>标签。正如我们通常喜欢的 <ion-buttons> </ion-buttons>一样。此的 随播打开标记<ion-buttons end>标记。不要混淆标记内的 end。该 end确实有助于完成按钮的对齐。除此之外不要思考:)。

    希望这对您有帮助。干杯!

    关于button - ionic 按钮的开始和结束语法没有意义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43239916/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com