gpt4 book ai didi

css - IONIC Framework - 表单布局

转载 作者:行者123 更新时间:2023-11-28 12:15:21 25 4
gpt4 key购买 nike

我正在学习如何使用 Ionic Framework .我很喜欢它。但是,我不关心表单布局。我真的很想包括一个附加组件:一些帮助文本。换句话说,我想创建一个如下所示的表单:

Label1
[TextBox with a border here]
a tidbit goes here

Label2
[TextBox with a border here]
a tidbit goes here.

[Button]

但是,我不知道如何在 Ionic Framework 中做到这一点。所有的表单布局都使用一个列表,它为每个部分添加了边界,这是我不想要的。 CSS 向导可以帮助我吗?

谢谢!

最佳答案

How does this work?给你?

       <label class="item item-input item-stacked-label item-divider">
Name

<input type="text" placeholder="Name">
</label>

<div class="item item-footer">
Please enter your name
</div>

要按照你想要的方式获得CSS,你可以添加这个

.item{
border: none;
}
.item-footer {
font-size:11px ;
padding: 8px ;
}

.item-stacked-label input, .item-stacked-label textarea{
padding:0 ;
}

关于css - IONIC Framework - 表单布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23573863/

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