Home  >  Article  >  Web Front-end  >  label的for属性_html/css_WEB-ITnose

label的for属性_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:43:241073browse

一、使用介绍

for属性规定label与哪个表单元素绑定

label和表单控件绑定方式又两种:

1、将表单控件作为label的内容,这样就是隐士绑定。

此时不需要for属性,绑定的控件也不需要id属性。

隐式绑定:

2、为

显式绑定:

二、为什么要给
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn