Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 w2ui 表单中添加了一个自定义按钮,但我希望它与其他 w2ui 按钮保持一致。它具有“添加”功能,因此我想显示类似于 w2ui 工具栏中使用的“加号”图标。有人能告诉我实现这一目标的最佳方法吗?
我的 html 定义如下:
... <div> ... <button class="btn", name:="add">"Add"</button> // How to give it the 'plus' icon? ...
当然实现只需要使用 Firebug 来获取样式。所以在你的 btn 类中添加“w2ui-icon-plus”就可以了