dongxiuling 1 anno fa
parent
commit
3365a37cbf
2 ha cambiato i file con 54 aggiunte e 0 eliminazioni
  1. 1 0
      6_基础标签2.html
  2. 53 0
      7_表单元素.html

+ 1 - 0
6_基础标签2.html

@@ -55,6 +55,7 @@
 
     观察自己占一行还是多个站一行
     div span  strong b 加粗 i 斜体
+    
     -->
     
 </body>

+ 53 - 0
7_表单元素.html

@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Document</title>
+</head>
+<body>
+    <!-- 表单 action提交地址-->
+<form action="xxx">
+     <!-- 文本框 type="text"-->
+     用户名:<input type="text">
+     <!-- 密码框 type="password"-->
+     密码:<input type="password">
+     <br>
+ 
+     <!-- 单选框 type="radio"  需要有一个相同的name属性,代表他们是一组的-->
+     性别:
+     <input type="radio" name="sex">男
+     <input type="radio" name="sex">女
+ 
+     <br>
+ 
+     <!-- 复选框 type="checkbox" -->
+     爱好:
+     <input type="checkbox" name="hobby">吃饭
+     <input type="checkbox" name="hobby">睡觉
+     <input type="checkbox" name="hobby">敲代码
+     <br>
+     <!-- 下拉框 -->
+     <select>
+         <option>黑大</option>
+         <option>理工</option>
+         <option>林大</option>
+     </select>
+     <br>
+     <!-- 文本域 -->
+     <textarea></textarea>
+     <br>
+ 
+     <!-- 普通按钮 -->
+     <button>按钮</button>
+     <!-- type="submit" 提交按钮 -->
+     <input type="submit">
+     <!-- type="reset" 重置按钮  -->
+     <input type="reset">
+</form>
+
+
+    
+</body>
+</html>