gpt4 book ai didi

jquery-mobile - 为什么 jquery mobile 的数据图标不显示?

转载 作者:行者123 更新时间:2023-12-01 19:35:08 25 4
gpt4 key购买 nike

我在代码中使用了 data-icon 和按钮,但问题是,图标没有显示。它只显示一个圆圈..

这是我的 html 代码

<a href="index.html" data-role="button" data-icon="delete">Remove</a> 
<a href="index.html" data-role="button" data-icon="plus">Add</a>
<a href="index.html" data-role="button" data-icon="arrow-u">Up</a>
<a href="index.html" data-role="button" data-icon="arrow-d">Down</a>

我不是发生这个问题的原因,对于所有使用图标或自动具有图标的按钮,如

data-add-back-btn="true"

后退图标也不显示,仅显示带有文本后退的按钮

有人能帮我吗?谢谢。

最佳答案

链接不会变成按钮,除非您添加 data-role="button"属性。

表格<input type="button" /><input type="submit" />会自动变成“按钮小部件”,如 <button></button>标签。

文档:http://jquerymobile.com/demos/1.1.0/docs/buttons/buttons-types.html

关于jquery-mobile - 为什么 jquery mobile 的数据图标不显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10308638/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com