上传文件:type="file">
隐藏字段:
禁用disabled:
只读readonly:
- html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=\, initial-scale=1.0">
- <title>上传文件title>
- head>
- <body>
- <div>
- <div>请上传文件div>
- <div>
-
- <input type="file" name="">
- div>
- div>
-
- <div>
- <div>图片按钮-代替提交按钮样式(input type="submit")div>
- <form action="">
-
- <input type="image" src="OIP-C.jpg" >
- form>
- div>
-
- <div>
- <div>隐藏按钮div>
- <input type="hidden" name="" id="" value="带给后端的信息">
- div>
-
- <div>
- <div>禁用disabled,只读readonlydiv>
- <div>
- <button disabled="disabled">注册button>
- <br>
- <input type="radio" disabled>不满意
-
- <br>
- <input type="text" disabled value="11111111">
- <input type="text" readonly value="只读">
- div>
- div>
- body>
- html>