Skip to content
New issue

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

HTML元素的布尔属性有哪些? #174

Open
pwstrick opened this issue Jul 16, 2019 · 3 comments
Open

HTML元素的布尔属性有哪些? #174

pwstrick opened this issue Jul 16, 2019 · 3 comments
Labels
HTML HTML类的题目

Comments

@pwstrick
Copy link
Owner

HTML元素的布尔属性有哪些?

@pwstrick pwstrick added the HTML HTML类的题目 label Jul 16, 2019
@Evenlala
Copy link

disabled、hidden

@LoveEocding
Copy link

readonly disabled hidden selected checked

@bigbig-sunnyboy
Copy link

1.noshade,用来表示有无阴影,多用于在


标签当中

2.ckecked,用来表示是否默认选中,多用于单选按钮和多选按钮中,需要注意的是,在中需要用相同的name才能达到单选框的效果

3.selected,用来表示是否优先显示,用于下拉表单和只能下拉表单中

4.autofocus,用来自动获取焦点,用于有输入框的标签中

5.readonly,只读属性,可以获取焦点,数据会传递给后台,适合于能输入的文本框,比如text

6.disabled,禁用属性,可以使其无法获取焦点,数据无法传递给后台,在输入文本和按钮都可以用

7.require,用来表示必须选择,多用于标签中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HTML HTML类的题目
Projects
None yet
Development

No branches or pull requests

4 participants