编辑下面的代码:【加编码】
<html> <head> <link rel="stylesheet" href="https://libs.baidu.com/jquerymobile/1.4.2/jquery.mobile.min.css"> <script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script> <script src="https://libs.baidu.com/jquerymobile/1.4.2/jquery.mobile.min.js"></script> </head> <body> <div data-role="page" id="pageone"> <div data-role="header"> <h1>主题化表单</h1> </div> <div data-role="content" data-theme="e"> <form method="post" action="demoform.asp"> <div data-role="fieldcontain"> <label for="name">全名:</label> <input type="text" name="text" id="name" placeholder="您的姓名..." data-theme="a"> <br><br> <label for="search">您需要搜索什么?</label> <input type="search" name="search" id="search" placeholder="需要搜索的内容..." data-theme="d"> <br><br> <label for="date">今天的日期:</label> <input type="date" name="date" id="date"> <br><br> <label for="colors">请选择喜爱的颜色:</label> <select id="colors" name="colors" data-theme="b"> <option value="red">红色</option> <option value="green">绿色</option> <option value="blue">蓝色</option> </select> <br><br> <label for="switch">切换开关:</label> <select name="switch" id="switch" data-role="slider" data-theme="a"> <option value="on">On</option> <option value="off">Off</option> </select> <br><br> <div data-role="controlgroup"> <legend>请选择喜爱的电影:</legend> <label for="mov1">蜘蛛侠</label> <input type="checkbox" name="mov1" id="mov1" data-theme="a"> <label for="mov2">变形金刚</label> <input type="checkbox" name="mov2" id="mov2" data-theme="b"> <label for="mov3">星球大战</label> <input type="checkbox" name="mov3" id="mov3" data-theme="c"> </div> </div> <input type="submit" data-inline="true" value="提交"> </form> </div> </div> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂