前端开发可能遇到的表单页面,需要的直接取就行,也作为个人的学习笔记吧。在选择性别或者其他单选或多选时,直接点击“字”也可以实现选中功能,提高用户使用感受。以下直接上全部代码,需要的直接复制粘贴即可。
先展示表单页面:
直接上代码:
<!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>表单</title>
</head>
<body>
<h1>青春不常在,抓紧谈恋爱</h1>
<hr />
昵称:<input type="text" placeholder="请输入昵称" name="" id="" />
<br />
性别:<label><input type=