jQuery Mobile 按钮图标添加图标到按钮
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://apps.bdimg.com/libs/jquerymobile/1.4.2/jquery.mobile.min.css">
<script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://apps.bdimg.com/libs/jquerymobile/1.4.2/jquery.mobile.min.js"></script>
</head>
<body>
<div data-role="page" id="pageone">
<div data-role="content">
<a href="#" data-role="button" data-icon="arrow-l">左边箭头图标</a>
<a href="#" data-role="button" data-icon="arrow-r">右边箭头图标</a>
<a href="#" data-role="button" data-icon="arrow-u">向上箭头图标</a>
<a href="#" data-role="button" data-icon="arrow-d">向下箭头图标</a>
<a href="#" data-role="button" data-icon="plus">加号</a>
<a href="#" data-role="button" data-icon="minus">减号图标</a>
<a href="#" data-role="button" data-icon="delete">乘号图标</a>
<a href="#" data-role="button" data-icon="check">选择图标</a>
<a href="#" data-role="button" data-icon="home">主页图标</a>
<a href="#" data-role="button" data-icon="info">信息图标</a>
<a href="#" data-role="button" data-icon="back">返回图标</a>
<a href="#" data-role="button" data-icon="forward">前往图标</a>
<a href="#" data-role="button" data-icon="refresh">刷新图标</a>
<a href="#" data-role="button" data-icon="grid">网格图标</a>
<a href="#" data-role="button" data-icon="gear">齿轮图标</a>
<a href="#" data-role="button" data-icon="search">搜索图标</a>
<a href="#" data-role="button" data-icon="star">星号图标</a>
<a href="#" data-role="button" data-icon="alert">警告图标</a>
</div>
</div>
</body>
</html>
- 点赞
- 收藏
- 关注作者
评论(0)