W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="//code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"> <script src="//code.jquery.com/jquery-1.8.3.min.js"></script> <script src="//code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.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="/demo/demo_form.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>