所有 HTML attribute - prop 对照表
|
attr
|
global
|
tags
|
prop
|
|
aria-activedescendant
|
true
|
all
|
|
|
aria-atomic
|
true
|
all
|
|
|
aria-autocomplete
|
true
|
all
|
|
|
aria-busy
|
true
|
all
|
|
|
aria-checked
|
true
|
all
|
|
|
aria-colcount
|
true
|
all
|
|
|
aria-colindex
|
true
|
all
|
|
|
aria-colspan
|
true
|
all
|
|
|
aria-controls
|
true
|
all
|
|
|
aria-current
|
true
|
all
|
|
|
aria-describedat
|
true
|
all
|
|
|
aria-describedby
|
true
|
all
|
|
|
aria-disabled
|
true
|
all
|
|
|
aria-dropeffect
|
true
|
all
|
|
|
aria-errormessage
|
true
|
all
|
|
|
aria-expanded
|
true
|
all
|
|
|
aria-flowto
|
true
|
all
|
|
|
aria-grabbed
|
true
|
all
|
|
|
aria-haspopup
|
true
|
all
|
|
|
aria-hidden
|
true
|
all
|
|
|
aria-invalid
|
true
|
all
|
|
|
aria-kbdshortcuts
|
true
|
all
|
|
|
aria-label
|
true
|
all
|
|
|
aria-labelledby
|
true
|
all
|
|
|
aria-level
|
true
|
all
|
|
|
aria-live
|
true
|
all
|
|
|
aria-modal
|
true
|
all
|
|
|
aria-multiline
|
true
|
all
|
|
|
aria-multiselectable
|
true
|
all
|
|
|
aria-orientation
|
true
|
all
|
|
|
aria-owns
|
true
|
all
|
|
|
aria-placeholder
|
true
|
all
|
|
|
aria-posinset
|
true
|
all
|
|
|
aria-pressed
|
true
|
all
|
|
|
aria-readonly
|
true
|
all
|
|
|
aria-relevant
|
true
|
all
|
|
|
aria-required
|
true
|
all
|
|
|
aria-roledescription
|
true
|
all
|
|
|
aria-rowcount
|
true
|
all
|
|
|
aria-rowindex
|
true
|
all
|
|
|
aria-rowspan
|
true
|
all
|
|
|
aria-selected
|
true
|
all
|
|
|
aria-setsize
|
true
|
all
|
|
|
aria-sort
|
true
|
all
|
|
|
aria-valuemax
|
true
|
all
|
|
|
aria-valuemin
|
true
|
all
|
|
|
aria-valuenow
|
true
|
all
|
|
|
aria-valuetext
|
true
|
all
|
|
|
accesskey
|
true
|
all
|
accessKey
|
|
class
|
true
|
all
|
className
|
|
contenteditable
|
true
|
all
|
contentEditable
|
|
contextmenu
|
true
|
all
|
|
|
dir
|
true
|
all
|
dir
|
|
draggable
|
true
|
all
|
draggable
|
|
dropzone
|
true
|
all
|
|
|
hidden
|
true
|
all
|
hidden
|
|
id
|
true
|
all
|
id
|
|
itemid
|
true
|
all
|
|
|
itemprop
|
true
|
all
|
|
|
itemref
|
true
|
all
|
|
|
itemscope
|
true
|
all
|
|
|
itemtype
|
true
|
all
|
|
|
lang
|
true
|
all
|
lang
|
|
role
|
true
|
all
|
|
|
spellcheck
|
true
|
all
|
spellcheck
|
|
style
|
true
|
all
|
style
|
|
tabindex
|
true
|
all
|
tabIndex
|
|
title
|
true
|
all
|
title
|
|
translate
|
true
|
all
|
translate
|
|
manifest
|
false
|
html
|
|
|
href
|
false
|
base,link,a,area
|
href
|
|
target
|
false
|
base,a,area,form
|
target
|
|
crossorigin
|
false
|
link,img,video,audio,script
|
crossOrigin
|
|
rel
|
false
|
link,a,area
|
rel
|
|
media
|
false
|
link,style
|
media
|
|
hreflang
|
false
|
link,a,area
|
|
|
type
|
false
|
link,style,ol,a,embed,object,source,area,input,button,script
|
type
|
|
sizes
|
false
|
link
|
sizes
|
|
name
|
false
|
meta,iframe,object,param,map,form,input,button,select,textarea,output,fieldset
|
name
|
|
http-equiv
|
false
|
meta
|
httpEquiv
|
|
content
|
false
|
meta
|
content
|
|
charset
|
false
|
meta,script
|
charset
|
|
nonce
|
false
|
style,script
|
nonce
|
|
scoped
|
false
|
style
|
|
|
onafterprint
|
false
|
body
|
onafterprint
|
|
onbeforeprint
|
false
|
body
|
onbeforeprint
|
|
onbeforeunload
|
false
|
body
|
onbeforeunload
|
|
onhashchange
|
false
|
body
|
onhashchange
|
|
onlanguagechange
|
false
|
body
|
onlanguagechange
|
|
onmessage
|
false
|
body
|
onmessage
|
|
onoffline
|
false
|
body
|
onoffline
|
|
ononline
|
false
|
body
|
ononline
|
|
onpagehide
|
false
|
body
|
onpagehide
|
|
onpageshow
|
false
|
body
|
onpageshow
|
|
onpopstate
|
false
|
body
|
onpopstate
|
|
onstorage
|
false
|
body
|
onstorage
|
|
onunload
|
false
|
body
|
onunload
|
|
cite
|
false
|
blockquote,q,del
|
cite
|
|
reversed
|
false
|
ol
|
reversed
|
|
start
|
false
|
ol
|
start
|
|
value
|
false
|
li,param,input,button,option,progress,meter
|
value
|
|
download
|
false
|
a,area
|
download
|
|
ping
|
false
|
a,area
|
ping
|
|
datetime
|
false
|
time,del
|
dateTime
|
|
alt
|
false
|
img,area,input
|
alt
|
|
src
|
false
|
img,iframe,embed,video,audio,source,track,input,script
|
src
|
|
srcset
|
false
|
img
|
srcset
|
|
usemap
|
false
|
img,object
|
useMap
|
|
ismap
|
false
|
img
|
isMap
|
|
width
|
false
|
img,iframe,embed,object,video,input,canvas
|
width
|
|
height
|
false
|
img,iframe,embed,object,video,input,canvas
|
height
|
|
srcdoc
|
false
|
iframe
|
srcdoc
|
|
sandbox
|
false
|
iframe
|
sandbox
|
|
seamless
|
false
|
iframe
|
|
|
allowfullscreen
|
false
|
iframe
|
allowFullscreen
|
|
data
|
false
|
object
|
data
|
|
typemustmatch
|
false
|
object
|
|
|
form
|
false
|
object,label,input,button,select,textarea,output,fieldset
|
form
|
|
poster
|
false
|
video
|
poster
|
|
preload
|
false
|
video,audio
|
preload
|
|
autoplay
|
false
|
video,audio
|
autoplay
|
|
mediagroup
|
false
|
video,audio
|
|
|
loop
|
false
|
video,audio
|
loop
|
|
muted
|
false
|
video,audio
|
muted
|
|
controls
|
false
|
video,audio
|
controls
|
|
default
|
false
|
track
|
default
|
|
kind
|
false
|
track
|
kind
|
|
label
|
false
|
track,optgroup,option
|
label
|
|
srclang
|
false
|
track
|
srclang
|
|
coords
|
false
|
area
|
coords
|
|
shape
|
false
|
area
|
shape
|
|
sortable
|
false
|
table
|
|
|
border
|
false
|
table
|
border
|
|
span
|
false
|
colgroup,col
|
span
|
|
colspan
|
false
|
td,th
|
colSpan
|
|
rowspan
|
false
|
td,th
|
rowSpan
|
|
headers
|
false
|
td,th
|
headers
|
|
scope
|
false
|
th
|
scope
|
|
sorted
|
false
|
th
|
|
|
abbr
|
false
|
th
|
abbr
|
|
accept-charset
|
false
|
form
|
acceptCharset
|
|
action
|
false
|
form
|
action
|
|
autocomplete
|
false
|
form,input,select,textarea
|
autocomplete
|
|
enctype
|
false
|
form
|
enctype
|
|
method
|
false
|
form
|
method
|
|
novalidate
|
false
|
form
|
noValidate
|
|
for
|
false
|
label,output
|
htmlFor
|
|
accept
|
false
|
input
|
accept
|
|
autofocus
|
false
|
input,button,select,textarea
|
autofocus
|
|
checked
|
false
|
input
|
checked
|
|
dirname
|
false
|
input,textarea
|
dirName
|
|
disabled
|
false
|
input,button,select,optgroup,option,textarea,fieldset
|
disabled
|
|
formaction
|
false
|
input,button
|
formAction
|
|
formenctype
|
false
|
input,button
|
formEnctype
|
|
formmethod
|
false
|
input,button
|
formMethod
|
|
formnovalidate
|
false
|
input,button
|
formNoValidate
|
|
formtarget
|
false
|
input,button
|
formTarget
|
|
inputmode
|
false
|
input,textarea
|
inputMode
|
|
list
|
false
|
input
|
list
|
|
max
|
false
|
input,progress,meter
|
max
|
|
maxlength
|
false
|
input,textarea
|
maxLength
|
|
min
|
false
|
input,meter
|
min
|
|
minlength
|
false
|
input,textarea
|
minLength
|
|
multiple
|
false
|
input,select
|
multiple
|
|
pattern
|
false
|
input
|
pattern
|
|
placeholder
|
false
|
input,textarea
|
placeholder
|
|
readonly
|
false
|
input,textarea
|
readOnly
|
|
required
|
false
|
input,select,textarea
|
required
|
|
size
|
false
|
input,select
|
size
|
|
step
|
false
|
input
|
step
|
|
selected
|
false
|
option
|
selected
|
|
cols
|
false
|
textarea
|
cols
|
|
rows
|
false
|
textarea
|
rows
|
|
wrap
|
false
|
textarea
|
wrap
|
|
low
|
false
|
meter
|
low
|
|
high
|
false
|
meter
|
high
|
|
optimum
|
false
|
meter
|
optimum
|
|
open
|
false
|
details
|
open
|
|
async
|
false
|
script
|
async
|
|
defer
|
false
|
script
|
defer
|
所有 HTML attribute - prop 对照表的更多相关文章
- jQuery学习笔记(四):attr()与prop()的区别
这一节针对attr()与prop()之间的区别进行学习. 先看看官方文档是如何解释两者之间功能差异的: attr() Get the value of an attribute for the fir ...
- jQuery学习笔记:attr()与prop()的区别
先看看官方文档是如何解释两者之间功能差异的: attr() Get the value of an attribute for the first element in the set of matc ...
- (转)R空间数据处理与可视化
前言 很多朋友说在R里没法使用高德地图,这里给出一个基于leaflet包的解决方法. library(leaflet) # 添加高德地图 m <- leaflet() %>% addTil ...
- 陌生的 metaclass(转)
add by zhj:这是我见过的对metaclass解释最清楚的文章了,例子很好,真是一例胜千言 原文:http://wiki.jikexueyuan.com/project/explore-pyt ...
- DataTable扩展:转化实体ToList
直接上代码: 根据属性进行映射:DataTable转化成实体List public static class DataTableExtension { public static List<T& ...
- jQuery的attr与prop,attribute和property区别
jQuery1.6中新添加了一个prop方法,看起来和用起来都和attr方法一样,这两个方法有什么区别呢?这要从HTMl 的attribute与property区别说起,attr与prop正是这两个东 ...
- 2018年1月 attribute VS prop 动画渲染
attribute和prop和UI存在单向/双向绑定关系,参考 https://m.aliyun.com/yunqi/articles/31499 渲染流程 重绘和重排 ? requestAnimat ...
- Bulestacks模拟器Bulestacks.prop文件里中英文对照表
打开“Bulestacks.prop”文件后可以看到以下内容,根据中英文对照表来修改即可. # begin build properties (开始设置系统性能)# autogenerated by ...
- jQuery中使用attribute,prop获取,设置input的checked值【转】
1.prop方法获取.设置checked属性 当input控件checkbox设置了checked属性时,无论checked=”“或 checked=”checked”,$(obj).prop(“ch ...
- jQuery中使用attribute,prop获取,设置input的checked值
1.prop方法获取.设置checked属性 当input控件checkbox设置了checked属性时,无论checked=”“或 checked=”checked”,$(obj).prop(“ch ...
随机推荐
- C++中指针和数组相关的运算符优先级
概述 本文深入介绍了与指针和数组相关的运算符优先级,利用代码示例展示了当左结合和右结合运算符同时存在时的结合方式,同时也演示了如何使用()来强制人为指定结合顺序. 指针.数组相关的运算符优先级 下表展 ...
- 2022年1月国产数据库排行榜:TiDB霸榜两年势头不减,openGauss与OceanBase分数大涨
奎钩粲粲光华动,群玉森森气象新.国产数据库行业在经历了2021年的躬行实践之后,产品.服务.生态等取得了蓬勃发展.从2022年1月份的国产数据库流行度排行榜上,我们可以看到,相较于去年12月份,榜单上 ...
- Vue 路由的懒加载的作用
不会一次性加载全部的路由 ,使用哪个页面 就会加载哪个路由 : 可以优化spa页面首次加载 :
- KubeSphere v3.3.1 权限控制详解
作者:周文浩,青云科技研发工程师,KubeSphere Maintainer.热爱云原生,热爱开源,目前负责 KubeSphere 权限控制的开发与维护. KubeSphere 3.3.1 已经发布一 ...
- 修改Linux服务的文件打开句柄数
在bash中,有个ulimit命令,提供了对shell及该shell启动的进程的可用资源控制.主要包括打开文件描述符数量.用户的最大进程数量.coredump文件的大小等. 在centos 5/6 等 ...
- sort()的函数参数 —— function(a,b){return a -b} 相关问题_20220114
sort()的函数参数--function(a,b){return a -b} 相关问题 sort()的定义和用法 sort() 方法用于对数组的元素进行排序. 排序顺序可以是字母或数字,并按升序或降 ...
- spring boot中使用quratz实现定时。 使用task直接调用的实现方法
1.定义工作类 2.创建配置类,将工作对象绑定到工作明细,然后创建触发器 与工作明细进行绑定 二.使用task实现定时任务 1.启动类上开启定时功能 2.在需要定时的任务上增加Schedule注解,并 ...
- Mac安装Docker
一.下载 从官网下载速度太慢,推荐在阿里云镜像下载. 下载地址:http://mirrors.aliyun.com/docker-toolbox/mac/docker-for-mac/stable/D ...
- 洛谷:P5707 【深基2.例12】上学迟到 (纯净的顺序结构方法)
本内容纯作者吃饱了没事干做出来的,仅供娱乐和思路参考(当然代码肯定是AC了) 最近我想重新提升一下自己的编程能力,想选一个题量比较精炼的平台,所以就用了洛谷. 题目描述 学校和 yyy 的家之间的距离 ...
- RK3568,字符设备框架:管理同主设备号、不同次设备号设备
字符设备框架:管理同主设备号.不同次设备号设备 以下代码针对迅为开发板RK3568,开发板系统是ubuntu20.04, 正文 以下是我写的字符设备框架,实现了管理同主设备号.不同次设备号的功能. 代 ...