HTML5的学习示例分享,jQuery Mobile的技术学习分享

业余草 业余草 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
HTML5的学习示例分享,jQuery Mobile的技术学习分享

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
</head>
<body>

<div data-role="page">
<div data-role="header">
<h1>主题化可折叠表单</h1>
</div>

<div data-role="content">
<form method="post" action="demoform.asp">
<fieldset data-role="collapsible" data-theme="b" data-content-theme="e">
<legend>点击我 - 我是可折叠的!</legend>
<label for="name">全名:</label>
<input type="text" name="text" id="name">
<p>喜爱的颜色:</p>
<div data-role="controlgroup">
<label for="red">红色</label>
<input type="checkbox" name="favcolor" id="red" value="red">
<label for="green">绿色</label>
<input type="checkbox" name="favcolor" id="green" value="green">
<label for="blue">蓝色</label>
<input type="checkbox" name="favcolor" id="blue" value="blue">
</div>
<input type="submit" data-inline="true" value="提交" data-theme="a">
</fieldset>
</form>
</div>
</div>
</body>
</html>


看看PC上的效果:

看看手机上的效果:

...全文

相关推荐

评论 13
收藏 已收藏
分享
返回顶部
业余草
业余草 优质创作者: Java技术领域 优质创作者: Java技术领域领域专家: 后端开发技术领域 领域专家: 后端开发技术领域
HTML5 43,737 成员 5,570 内容