实例 jQuery Mobile 文本输入

x
 
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
<script src="https://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="https://libs.baidu.com/jquerymobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
</head>
<body>
<div data-role="page">
  <div data-role="header">
  <h1>文本输入</h1>
  </div>
  <div data-role="content">
    <form method="post" action="/example/html/html_form.aspx">
      <div data-role="fieldcontain">
        <label for="fullname">全名:</label>
        <input type="text" name="fullname" id="fullname">       
        <label for="bday">生日:</label>
        <input type="date" name="bday" id="bday">
        <label for="email">电邮:</label>
        <input type="email" name="email" id="email" placeholder="您的邮箱地址..">
      </div>
      <input type="submit" data-inline="true" value="提交">
    </form>
  </div>
</div>
</body>
</html>
                    

输出结果