我正在使用IONIC框架来创建一个应用程序,但是我对"datetime“组件有一个小问题,值显示在两行中。
<ion-list-header>
<ion-label>Datos de nacimiento</ion-label>
</ion-list-header>
<ion-list>
<ion-label>Fecha de Nacimiento:</ion-label>
<ion-datetime value="{{fechaNaci | date: 'yyyy-MM-dd'}}" display-format="YYYY MMMM DD"></ion-datetime>
</ion-list>
</ion-content>```
I expect the output should be displayed on the yellow rectangle instead of green one:
[enter image description here][1]
[1]: https://i.stack.imgur.com/RLVr6.jpg发布于 2019-06-07 00:17:41
嗨,我正在检查关于ionic的文档,我发现了我的问题,我忘记了在ion-list和我的ion-label之间添加和ion-item,这是非常简单的事情。
https://stackoverflow.com/questions/56479268
复制相似问题