多选框

1、超链接

</body>
	<a href="https://cn.vuejs.org/v2/guide/installation.html"></a>
	<a href="https://cn.vuejs.org/v2/guide/installation.html">
	
	</a>
</body>

2、用户登录页面

	<title>用户登录页面</title>
	<style type="text/css">
		*{
			font-family: 微软雅黑;
		}
		
	</style>
</head>
</body>
	<h1>用户登录页面</h1>
	<form action="">
		<p>用户名:</p>
		<p>
			<input type="text" name="username" value="小米">
		</p>
		<p>密码:</p>
		<p>
			<input type="password" name="password" value="123">
		</p>
		<p>邮箱:</p>
		<p>
			<input type="text" name="email" value="123@qq.com">
		</p>
		<p>
			<input type="submit" value="OK">
			<input type="reset" value="cancel">
		</p>

	</form>
</body>

3、表单占位placeholder

<form action="">
		<p>用户名:</p>
		<p>
			<input type="text" name="username" placeholder="用户名">
		</p>
		<p>密码:</p>
		<p>
			<input type="password" name="password" placeholder="密码">
		</p>
		<p>邮箱:</p>
		<p>
			<input type="text" name="email" placeholder="邮箱">
		</p>
		<p>
			<input type="submit" value="OK">
			<input type="reset" value="cancel">
		</p>

	</form>

4、只读readonly

</body>
	<h1>用户登录页面</h1>
	<form action="">
		<p>用户名:</p>
		<p>
			<input type="text" name="username" value="小胡" readonly>
		</p>
		
		<p>邮箱:</p>
		<p>
			<input type="text" name="email" placeholder="邮箱">
		</p>
		<p>
			<input type="submit" value="OK">
			<input type="reset" value="cancel">
		</p>

	</form>
</body>

5、禁用disabled

</body>
	<h1>用户登录页面</h1>
	<form action="">
		<p>用户名:</p>
		<p>
			<input type="text" name="username" value="小胡" disabled>
		</p>
		
		<p>邮箱:</p>
		<p>
			<input type="text" name="email" placeholder="邮箱">
		</p>
		<p>
			<input type="submit" value="OK">
			<input type="reset" value="cancel">
		</p>

	</form>
</body>

6、文本框长度:size

<p>
			<input type="text" name="username" value="小胡" size="5">
		</p>

7、文本框最大长度:maxlength

	<p>
			<input type="text" name="username" value="小胡" maxlength="5">
		</p>

8、单选框:radio

</body>
	<h1>用户登录页面</h1>
	<form action="">
		<p>用户名:</p>
		<p>
			<input type="text" name="username" value="小胡" maxlength="5">
		</p>
		<p>爱好:</p>
		<p>
			<label>
				<input type="radio" name="love" value="看书">看书
			</label>
		</p>
		<p>
			<label>
				<input type="radio" name="love" value="吃鸡">吃鸡
			</label>
		</p>
		<p>
			<label>
				<input type="radio" name="love" value="运动">运动
			</label>
		</p>		
		<p>
			<input type="submit" value="OK">
			<input type="reset" value="cancel">
		</p>

	</form>
</body>

9、多选框checkbox

</body>
	<h1>用户登录页面</h1>
	<form action="index.php">
		<p>用户名:</p>
		<p>
			<input type="text" name="username" value="小胡" maxlength="5">
		</p>
		<p>爱好:</p>
		<p>
			<label>
				<input type="checkbox" name="love[]" value="看书">看书
			</label>
		</p>
		<p>
			<label>
				<input type="checkbox" name="love[]" value="吃鸡">吃鸡
			</label>
		</p>
		<p>
			<label>
				<input type="checkbox" name="love[]" value="运动">运动
			</label>
		</p>		
		<p>
			<input type="submit" value="OK">
			<input type="reset" value="cancel">
		</p>

	</form>
</body>
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值