gpt4 book ai didi

jquery-mobile - jquery-mobile 按钮数据图标在哪里?

转载 作者:行者123 更新时间:2023-12-02 00:25:54 25 4
gpt4 key购买 nike

我假设如果我有...的基本设置

<head>  
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/latest/jquery.mobile.css" />
<script src="js/jquery.js"></script>
<script src="js/jquery.mobile.js"></script>
</head>

然后,如果我稍后在代码中包含一个 header 和一个使用“加号”数据图标的按钮...

<div data-role="header" data-position="inline">
<h1>Shopping List</h1>
<a href="index.html" data-icon="plus" data-role="button">additem</a>
</div>

然后按钮将显示为“加号”数据图标。按钮出现,但没有数据图标。我的设置中缺少什么?

最佳答案

链接应该有 data-role="button" 不是吗?

关于jquery-mobile - jquery-mobile 按钮数据图标在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8912144/

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