0

我正在使用 onsen-ui 创建应用程序。

这是我的“删除”按钮的代码

<div class='form-well'>
    <br><br>
    <ons-button style="background-color: red;" modifier="large">Delete</ons-button>
</div>

一切都很好,“删除”按钮具有适当的大小和颜色,但我希望它在底部对齐。

图书馆(温泉)是否有适当的“onsenish”方式来做到这一点,或者我应该使用通用 html 模式(比如如何将 div 的内容对齐到底部?)并自己猜测像素?

删除画面

4

2 回答 2

1

像这样使用 cssposition属性,我只是使用按钮来了解您可以在那里使用button classid.

button {
   position: absolute;
   bottom:0;
   left:0;
}
于 2017-04-18T10:24:13.550 回答
-1

如果您想通过 onsen.io 进行操作,您可以找到答案

https://onsen.io/blog/auto-style-app-onsen/

于 2017-04-18T10:36:51.283 回答