概述
在html中,<fieldest>标签是用来将表单内的相关元素分组,相关表单元素周围将会被设置边框;<fieldset> 元素的标题一般由<legend>标签来定义;<fieldset>标签被所有主流浏览器支持。
html5新增属性
disabled:规定该组中的相关表单元素应该被禁用。
form:规定fieldset所属的一个或多个表单。
name:fieldset的名称。
<fieldset>标签支持html全局属性和html事件属性
格式:
<form>
<fieldset>
<legend>标题</legend>
表单元素
</fieldset>
</form>
登录后复制
实例
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/hmtl; charset=utf-8" ><!--PHP中午乱码处理-->
<title>html < fieldset>标签_PHP笔记</title>
</head>
<body>
<form>
<fieldset>
<legend>登陆</legend>
用户名: <input type="text"><br>
密码: <input type="password"><br>
Email: <input type="text">
</fieldset>
</form>
</body>
</html>
登录后复制
以上就是html fieldset标签怎么用的详细内容,更多请关注靠谱客其它相关文章!
最后
以上就是高挑高跟鞋为你收集整理的html fieldset标签怎么用的全部内容,希望文章能够帮你解决html fieldset标签怎么用所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复