jQuery Mobile 安装指南
warning:
这篇文章距离上次修改已过204天,其中的内容可能已经有所变动。
<!DOCTYPE html>
<html>
<head>
<title>jQuery Mobile 安装指南</title>
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="page" id="home">
<div data-role="header">
<h1>欢迎使用 jQuery Mobile</h1>
</div>
<div data-role="content">
<p>这是一个基本的 jQuery Mobile 页面示例。</p>
</div>
<div data-role="footer">
<h4>页脚信息</h4>
</div>
</div>
</body>
</html>
这段代码展示了如何在HTML页面中引入jQuery Mobile。通过在<head>
标签中包含jQuery Mobile的CSS和JavaScript文件,你可以为你的网站添加移动友好的界面。在<body>
中,你可以看到一个简单的页面结构,包括页眉、内容区和页脚,这些都是jQuery Mobile页面的基本组成部分。
评论已关闭