允許使用標籤來進行 Bootstrap 的表單驗證
在 Bootstrap 中使用 .control-label 類來允許使用標籤進行表單驗證。
你可以嘗試執行以下程式碼,在 Bootstrap 中實現 control-label 類
示例
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "container"> <form class = "form-horizontal"> <div class = "form-group"> <label class = "control-label col-sm-2" for="email">Email-</label> <div class = "col-sm-10"> <p class = "form-control-static">amit@demo.com</p> </div> </div> </form> </div> </body> </html>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP