如何在 w2ui 中使用 'Plus' 图标

How to use the 'Plus' icon in w2ui

我已将自定义按钮添加到 w2ui 表单,但我希望它与其他 w2ui 按钮保持一致。它具有 'add' 功能,因此我想显示类似于 w2ui 工具栏中使用的 'plus' 图标。有人可以告诉我实现此目标的最佳方法吗?

我的 html 定义如下:

...
<div>
 ...
<button class="btn", name:="add">"Add"</button>
// How to give it the 'plus' icon?
...

当然意识到只需要使用Firebug来获取样式。所以将 "w2ui-icon-plus" 添加到你的 btn class 就可以了