We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
label标签不会向用户呈现任何特殊效果,它的作用是为鼠标用户改进了可用性。
label
也就是说当你使用了一个label标签和一个input绑定起来之后,点击label标签上的文字就会自动聚焦到input上。
input
如下:
绑定的方式:
for
id
例如:
<label for="username">username:</label> <input type="text" name="username" id="username"/>
这里有两点需要注意的:
form
name
The text was updated successfully, but these errors were encountered:
No branches or pull requests
form表单中的label标签的作用?
label
标签不会向用户呈现任何特殊效果,它的作用是为鼠标用户改进了可用性。也就是说当你使用了一个
label
标签和一个input
绑定起来之后,点击label
标签上的文字就会自动聚焦到input
上。如下:
绑定的方式:
label
标签上设置for
属性input
标签上设置和for
属性一样的id
例如:
这里有两点需要注意的:
form
标签内才会生效for
是和id
对应的,并不是和name
The text was updated successfully, but these errors were encountered: