bootstrap radio button


<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewpot" content="width=device-width,initial-scale=1.0">

    <title>learn bootstrap</title>

    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<link href="google-code-prettify/prettify.css" rel="stylesheet">
  </head>
  <body onload="prettyPrint()">
  <script src="jquery1.11.3/jquery-1.11.3.min.js"></script>
  <script src="bootstrap/js/bootstrap.js"></script>
  <script src="google-code-prettify/prettify.js"></script>

  <div class="container">
    <label class="radio">
      <input type="radio" name="sex" value="male">男</label>
    <label class="radio">
      <input type="radio" name="sex" value="female">女</label>
      <label class="radio">
      <input type="radio" name="sex" value="other">其他</label>
  </div>
  </body>
</html>

注意

單選框的name必須是同一個東西,表示是一個組的。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM