欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
  在html中,<fieldest>标签是用来将表单内的相关元素分组,相关表单元素周围将会被设置边框;<fieldset>元素的标题一般由<legend>标签来定义;<fieldset>标签被所有主流浏览器支持。
 
  html5新增属性
 
  disabled:规定该组中的相关表单元素应该被禁用。
 
  form:规定fieldset所属的一个或多个表单。
 
  name:fieldset的名称。
 
  <fieldset>标签支持html全局属性和html事件属性
 
  格式:
 
  <form>
 
  <fieldset>
 
  <legend>标题</legend>
 
  表单元素
 
  </fieldset>
 
  </form>
 
  实例
 
  
 
  <!doctypehtml>
 
  <html>
 
  <head>
 
  <metacharset="UTF-8">
 
  <metahttp-equiv="Content-Type"content="text/hmtl;charset=utf-8"><!--PHP中午乱码处理-->
 
  <title>html<fieldset>标签_PHP笔记</title>
 
  </head>
 
  <body>
 
  <form>
 
  <fieldset>
 
  <legend>登陆</legend>
 
  用户名:<inputtype="text"><br>
 
  密码:<inputtype="password"><br>
 
  Email:<inputtype="text">
 
  </fieldset>
 
  </form>
 
  </body>
 
  </html>




 

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h53952.shtml