我正在尝试重新创建类似于 this 的内容.
我注意到输入字段不能在 <ion-content class="padding">
内因为那样他们会得到难看的填充物。另一方面,按钮需要此填充,否则它会粘在没有任何填充的一侧。
以下代码不起作用,因为它将按钮放置在输入字段的顶部:
<ion-view view-title="Settings">
<div ng-controller="ClickedCtrl">
<ion-content>
<div class="list">
<label class="item item-input item-floating-label">
<span class="input-label">First Name</span>
<input type="text" placeholder="First Name" ng-mode="fname">
</label>
</div>
</ion-content>
<ion-content class="padding">
<button class="button button-positive" ng-click="clicked()">
Save
</button>
</ion-content>
</div>
</ion-view>
更新:
这个布局是我想要的(注意输入字段上没有填充,但按钮上有填充):
最佳答案
关于html - ion-content : padding or no padding?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32071240/