HTMLElement
接口表示任何
HTML
元素。一些元素直接实现此接口,而其它元素凭借继承它的接口实现它。
<div id="interfaceDiagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveAspectRatio="xMinYMin meet"><a xlink:href="../API/EventTarget.html" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="../API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="../API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="../API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a></svg></div>
a:hover text { fill: #0095DD; pointer-events: all;}
继承的特性来自其父级,
元素
,和实现那些来自
DocumentAndElementEventHandlers
,
ElementCSSInlineStyle
,
GlobalEventHandlers
,
HTMLOrForeignElement
and
TouchEventHandlers
.
HTMLElement.accessKey
DOMString
表示赋值给元素的访问键。
HTMLElement.accessKeyLabel
只读
DOMString
包含元素的赋值访问键。
HTMLElement.contentEditable
DOMString
,值为
true
意味着元素是可编辑的而值为
false
意味着不是。
HTMLElement.isContentEditable
只读
布尔
that indicates whether or not the content of the element can be edited.
HTMLElement.contextMenu
HTMLMenuElement
representing the contextual menu associated with the element. It may be
null
.
HTMLOrForeignElement.dataset
只读
DOMStringMap
with which script can read and write the element's
自定义数据属性
(
data-*
).
HTMLElement.dir
DOMString
,反射
dir
global attribute, representing the directionality of the element. Possible values are
"ltr"
,
"rtl"
,和
"auto"
.
HTMLElement.draggable
布尔
指示若元素可以被拖动。
HTMLElement.dropzone
只读
DOMSettableTokenList
反射
dropzone
global attribute and describing the behavior of the element regarding a drop operation.
HTMLElement.hidden
布尔
指示元素是否被隐藏。
HTMLElement.inert
布尔
indicating whether the user agent must act as though the given node is absent for the purposes of user interaction events, in-page text searches ("find in page"), and text selection.
HTMLElement.innerText
Represents the "rendered" text content of a node and its descendants. As a getter, it approximates the text the user would get if they highlighted the contents of the element with the cursor and then copied it to the clipboard.
HTMLElement.itemScope
布尔
表示项作用域。
HTMLElement.itemType
只读
DOMSettableTokenList
…
HTMLElement.itemId
DOMString
表示项 ID。
HTMLElement.itemRef
只读
DOMSettableTokenList
…
HTMLElement.itemProp
只读
DOMSettableTokenList
…
HTMLElement.itemValue
对象
表示项值。
HTMLElement.lang
DOMString
representing the language of an element's attributes, text, and element contents.
HTMLElement.noModule
布尔
indicating whether an import script can be executed in user agents that support module scripts.
HTMLOrForeignElement.nonce
Returns the cryptographic number used once that is used by Content Security Policy to determine whether a given fetch will be allowed to proceed.
HTMLElement.offsetHeight
只读
double
containing the height of an element, relative to the layout.
HTMLElement.offsetLeft
只读
double
, the distance from this element's left border to its
offsetParent
's left border.
HTMLElement.offsetParent
只读
元素
that is the element from which all offset calculations are currently computed.
HTMLElement.offsetTop
只读
double
, the distance from this element's top border to its
offsetParent
's top border.
HTMLElement.offsetWidth
只读
double
containing the width of an element, relative to the layout.
HTMLElement.properties
只读
HTMLPropertiesCollection
…
HTMLElement.spellcheck
布尔
控制
spell-checking
. It is present on all HTML elements, though it doesn't have an effect on all of them.
HTMLElement.style
CSSStyleDeclaration
, an object representing the declarations of an element's style attributes.
HTMLOrForeignElement.tabIndex
long
representing the position of the element in the tabbing order.
HTMLElement.title
DOMString
containing the text that appears in a popup box when mouse is over the element.
HTMLElement.translate
布尔
表示翻译。
Most event handler properties, of the form
onXYZ
, are defined on the
DocumentAndElementEventHandlers
,
GlobalEventHandlers
or
TouchEventHandlers
interfaces and implemented by
HTMLElement
. In addition, the following handlers are specific to
HTMLElement
.
HTMLElement.oncopy
copy
事件 (
bug 280959
).
HTMLElement.oncut
cut
事件 (
bug 280959
).
HTMLElement.onpaste
paste
事件 (
bug 280959
).
TouchEventHandlers.ontouchstart
touchstart
事件。
TouchEventHandlers.ontouchend
touchend
事件。
TouchEventHandlers.ontouchmove
touchmove
事件。
TouchEventHandlers.ontouchenter
touchenter
事件。
TouchEventHandlers.ontouchleave
touchleave
事件。
TouchEventHandlers.ontouchcancel
touchcancel
事件。
继承方法来自其父级
元素
,和实现那些来自
DocumentAndElementEventHandlers
,
ElementCSSInlineStyle
,
GlobalEventHandlers
,
HTMLOrForeignElement
and
TouchEventHandlers
.
HTMLElement.attachInternals()
ElementInternals
instance to the custom element.
HTMLOrForeignElement.blur()
Removes keyboard focus from the currently focused element.
HTMLElement.click()
Sends a mouse click event to the element.
HTMLOrForeignElement.focus()
Makes the element the current keyboard focus.
HTMLElement.forceSpellCheck()
Runs the spell checker on the element's contents.
监听这些事件使用
addEventListener()
或通过把事件监听器赋值给
on
eventname
特性为此接口。
animationcancel
onanimationcancel
特性。
animationend
onanimationend
特性。
animationiteration
onanimationiteration
特性。
animationstart
onanimationstart
特性。
beforeinput
<input>
,
<select>
,或
<textarea>
元素即将被修改。
input
value
of an
<input>
,
<select>
,或
<textarea>
元素已改变。
oninput
特性。
change
value
of an
<input>
,
<select>
,或
<textarea>
element has been changed and committed by the user. Unlike the
input
event, the
change
event is not necessarily fired for each alteration to an element's
value
.
gotpointercapture
setPointerCapture()
.
ongotpointercapture
特性。
lostpointercapture
onlostpointercapture
特性。
pointercancel
onpointercancel
特性。
pointerdown
onpointerdown
特性。
pointerenter
onpointerenter
特性。
pointerleave
onpointerleave
特性。
pointermove
onpointermove
特性。
pointerout
onpointerout
特性。
pointerover
onpointerover
特性。
pointerup
onpointerup
特性。
transitioncancel
ontransitioncancel
特性。
transitionend
ontransitionend
特性。
transitionrun
ontransitionrun
特性。
transitionstart
ontransitionstart
特性。
| 规范 | 状态 | 注释 |
|---|---|---|
|
CSSOM (CSS 对象模型) 视图模块
在该规范中的 HTMLElement 定义。 |
工作草案 |
添加下列特性:
offsetParent
,
offsetTop
,
offsetLeft
,
offsetWidth
,和
offsetHeight
.
|
|
HTML 实时标准
在该规范中的 HTMLElement 定义。 |
实时标准 |
添加下列特性:
translate
,
itemScope
,
itemType
,
itemId
,
itemRef
,
itemProp
,
properties
,和
itemValue
.
添加下列方法:
forceSpellcheck()
.
Moved the
onXYZ
attributes to the
GlobalEventHandlers
interface and added an inheritance from it.
|
|
HTML5
在该规范中的 HTMLElement 定义。 |
推荐 |
添加下列特性:
dataset
,
hidden
,
tabindex
,
accessKey
,
accessKeyLabel
,
draggable
,
dropzone
,
contentEditable
,
isContentEditable
,
contextMenu
,
spellcheck
,
commandType
,
commandLabel
,
commandIcon
,
commandHidden
,
commandDisabled
,
commandChecked
,
style
, and all the
onXYZ
特性。
Moved the
id
and
className
properties to the
元素
接口。
|
|
DOM (文档对象模型) 2 级 HTML 规范
在该规范中的 HTMLElement 定义。 |
过时 | 无变化自 DOM (文档对象模型) 2 级 HTML 规范 |
|
DOM (文档对象模型) 1 级规范
在该规范中的 HTMLElement 定义。 |
过时 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
HTMLElement
|
Chrome 1 | Edge 12 | Firefox 1 | IE 5.5 | Opera 8 | Safari 3 | WebView Android 1 | Chrome Android 18 | Firefox Android 4 | Opera Android 10.1 | Safari iOS 1 | Samsung Internet Android 1.0 |
accessKey
|
Chrome 17 | Edge 12 | Firefox 5 | IE ? | Opera Yes | Safari 6 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 5 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 1.0 |
accessKeyLabel
|
Chrome No | Edge No | Firefox 8 | IE ? | Opera ? | Safari ? | WebView Android No | Chrome Android No | Firefox Android 8 | Opera Android ? | Safari iOS ? | Samsung Internet Android No |
animationcancel
event
|
Chrome No | Edge No | Firefox 54 | IE No | Opera No |
Safari
13.1
|
WebView Android No | Chrome Android No | Firefox Android 54 | Opera Android No |
Safari iOS
13.4
|
Samsung Internet Android No |
animationend
event
|
Chrome 43 | Edge 12 | Firefox Yes | IE 10 | Opera 30 | Safari 9 | WebView Android 43 | Chrome Android 43 | Firefox Android Yes | Opera Android 30 | Safari iOS 9 | Samsung Internet Android 4.0 |
animationiteration
event
|
Chrome 43 | Edge 12 | Firefox 51 | IE 10 | Opera 30 | Safari 9 | WebView Android 43 | Chrome Android 43 | Firefox Android 51 | Opera Android 30 | Safari iOS 9 | Samsung Internet Android 4.0 |
animationstart
event
|
Chrome 43 | Edge 12 | Firefox 51 | IE 10 | Opera 30 | Safari 9 | WebView Android 43 | Chrome Android 43 | Firefox Android 51 | Opera Android 30 | Safari iOS 9 | Samsung Internet Android 4.0 |
autocapitalize
|
Chrome 66 | Edge ≤79 | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android 66 | Chrome Android 66 | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android 9.0 |
beforeinput
event
|
Chrome Yes | Edge 79 | Firefox No | IE No | Opera Yes | Safari Yes | WebView Android Yes | Chrome Android Yes | Firefox Android No | Opera Android Yes | Safari iOS Yes | Samsung Internet Android Yes |
blur
|
Chrome 1 | Edge 12 | Firefox 5 | IE 9 | Opera 8 | Safari 3 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 5 | Opera Android 10.1 | Safari iOS 1 | Samsung Internet Android 1.0 |
| click() |
Chrome
9
|
Edge 12 |
Firefox
3
|
IE 8 | Opera 10.5 | Safari 6 |
WebView Android
≤37
|
Chrome Android
18
|
Firefox Android 5 | Opera Android 11 | Safari iOS 6 |
Samsung Internet Android
1.0
|
contentEditable
|
Chrome 1 | Edge 12 | Firefox 3 | IE 8 | Opera 9 | Safari 6 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 1.0 |
contextMenu
弃用
非标
|
Chrome 45 — 61 | Edge ≤18 — 79 | Firefox 1 | IE ? | Opera ? | Safari ? | WebView Android 45 — 61 | Chrome Android 45 — 61 | Firefox Android 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android 5.0 — 8.0 |
dataset
|
Chrome 8 | Edge 12 | Firefox 6 | IE 11 | Opera 11 | Safari 5.1 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 6 | Opera Android 11 | Safari iOS 5.1 | Samsung Internet Android 1.0 |
dir
|
Chrome 1 | Edge 12 | Firefox 1 | IE ? | Opera Yes | Safari 6 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 1.0 |
draggable
|
Chrome 7 | Edge 12 | Firefox 2 | IE Yes | Opera 12 | Safari 6 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 1.0 |
dropzone
|
Chrome 14 — 59 | Edge ≤18 — 79 | Firefox 1 | IE ? | Opera ? | Safari ? | WebView Android 4.4 — 59 | Chrome Android 18 — 59 | Firefox Android 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android 1.0 — 7.0 |
focus
|
Chrome 1 | Edge 12 | Firefox 5 | IE 9 | Opera 8 | Safari 3 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 5 | Opera Android 10.1 | Safari iOS 1 | Samsung Internet Android 1.0 |
forceSpellCheck
非标
|
Chrome No | Edge No | Firefox No | IE No | Opera No | Safari ? | WebView Android No | Chrome Android No | Firefox Android 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android No |
gotpointercapture
event
|
Chrome 57 | Edge ≤79 | Firefox 59 | IE ? | Opera 44 | Safari ? | WebView Android 57 | Chrome Android 57 | Firefox Android No | Opera Android 43 | Safari iOS ? | Samsung Internet Android 7.0 |
hidden
|
Chrome 6 | Edge 12 | Firefox 1 | IE 11 | Opera 11.6 | Safari 6 | WebView Android ≤37 | Chrome Android 18 | Firefox Android 4 | Opera Android 12 | Safari iOS 6 | Samsung Internet Android 1.0 |
inert
|
Chrome 60 | Edge ≤18 | Firefox ? | IE ? | Opera 47 | Safari ? | WebView Android 60 | Chrome Android 60 | Firefox Android ? | Opera Android 44 | Safari iOS ? | Samsung Internet Android 8.0 |
innerText
|
Chrome 1 | Edge 12 | Firefox 45 | IE 5.5 | Opera 9.6 | Safari 3 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 45 | Opera Android 10.1 | Safari iOS 4 | Samsung Internet Android 1.0 |
input
event
|
Chrome 1 |
Edge
79
|
Firefox 6 |
IE
部分支持
9
|
Opera 11.6 | Safari 3.1 | WebView Android 1 | Chrome Android 18 | Firefox Android 6 | Opera Android 12 | Safari iOS 2 | Samsung Internet Android 1.0 |
inputMode
|
Chrome 66 | Edge ≤79 | Firefox ? | IE ? | Opera Yes | Safari ? | WebView Android 66 | Chrome Android 66 | Firefox Android ? | Opera Android Yes | Safari iOS ? | Samsung Internet Android 9.0 |
isContentEditable
|
Chrome 1 | Edge 12 | Firefox 1 | IE ? | Opera Yes | Safari 6 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 1.0 |
itemId
|
Chrome 17 — 28 | Edge No | Firefox 6 | IE No | Opera 11 — 15 | Safari ? | WebView Android No | Chrome Android 18 — 28 | Firefox Android 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android 1.0 — 1.5 |
itemProp
|
Chrome 17 — 28 | Edge No | Firefox 6 | IE No | Opera 11 — 15 | Safari ? | WebView Android No | Chrome Android 18 — 28 | Firefox Android 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android 1.0 — 1.5 |
itemRef
|
Chrome 17 — 28 | Edge No | Firefox 6 | IE No | Opera 11 — 15 | Safari ? | WebView Android No | Chrome Android 18 — 28 | Firefox Android 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android 1.0 — 1.5 |
itemScope
|
Chrome 17 — 28 | Edge No | Firefox 6 | IE No | Opera 11 — 15 | Safari ? | WebView Android No | Chrome Android 18 — 28 | Firefox Android 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android 1.0 — 1.5 |
itemType
|
Chrome 17 — 28 | Edge No | Firefox 6 | IE No | Opera 11 — 15 | Safari ? | WebView Android No | Chrome Android 18 — 28 | Firefox Android 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android 1.0 — 1.5 |
itemValue
|
Chrome 17 — 28 | Edge No | Firefox 6 | IE No | Opera 11 — 15 | Safari ? | WebView Android No | Chrome Android 18 — 28 | Firefox Android 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android 1.0 — 1.5 |
lang
|
Chrome 1 | Edge 12 | Firefox 1 | IE ? | Opera Yes | Safari 6 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 1.0 |
lostpointercapture
event
|
Chrome 57 | Edge ≤79 | Firefox 59 | IE ? | Opera 44 | Safari ? | WebView Android 57 | Chrome Android 57 | Firefox Android No | Opera Android 43 | Safari iOS ? | Samsung Internet Android 7.0 |
noModule
|
Chrome 60 | Edge ≤79 | Firefox ? | IE No | Opera 47 | Safari ? | WebView Android 60 | Chrome Android 60 | Firefox Android ? | Opera Android 44 | Safari iOS ? | Samsung Internet Android 8.0 |
nonce
|
Chrome 61 | Edge 79 | Firefox 75 | IE No | Opera Yes | Safari 10 | WebView Android 61 | Chrome Android 61 | Firefox Android No | Opera Android Yes | Safari iOS 10 | Samsung Internet Android 8.0 |
offsetHeight
|
Chrome 1 | Edge 12 | Firefox 1 | IE 8 | Opera 8 | Safari 3 | WebView Android 1 | Chrome Android 18 | Firefox Android 4 | Opera Android 10.1 | Safari iOS 1 | Samsung Internet Android 1.0 |
offsetLeft
|
Chrome 1 | Edge 12 | Firefox 1 | IE 8 | Opera 8 | Safari 3 | WebView Android 1 | Chrome Android 18 | Firefox Android 4 | Opera Android 10.1 | Safari iOS 1 | Samsung Internet Android 1.0 |
offsetParent
|
Chrome 1 | Edge 12 | Firefox 1 | IE 8 | Opera 8 | Safari 3 | WebView Android 1 | Chrome Android 18 | Firefox Android 4 | Opera Android 10.1 | Safari iOS 1 | Samsung Internet Android 1.0 |
offsetTop
|
Chrome 1 | Edge 12 | Firefox 1 | IE 8 | Opera 8 | Safari 3 | WebView Android 1 | Chrome Android 18 | Firefox Android 4 | Opera Android 10.1 | Safari iOS 1 | Samsung Internet Android 1.0 |
offsetWidth
|
Chrome 1 | Edge 12 | Firefox 1 | IE 8 | Opera 8 | Safari 3 | WebView Android 1 | Chrome Android 18 | Firefox Android 4 | Opera Android 10.1 | Safari iOS 1 | Samsung Internet Android 1.0 |
oncopy
非标
|
Chrome 71 | Edge 12 | Firefox 3 | IE ? | Opera Yes | Safari Yes | WebView Android 71 | Chrome Android 71 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 10.0 |
oncut
非标
|
Chrome 71 | Edge 12 | Firefox 3 | IE ? | Opera Yes | Safari Yes | WebView Android 71 | Chrome Android 71 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 10.0 |
onModule
|
Chrome 60 | Edge ≤79 | Firefox ? | IE ? | Opera 47 | Safari ? | WebView Android 60 | Chrome Android 60 | Firefox Android ? | Opera Android 44 | Safari iOS ? | Samsung Internet Android 8.0 |
onpaste
非标
|
Chrome 71 | Edge 12 | Firefox 3 | IE ? | Opera Yes | Safari Yes | WebView Android 71 | Chrome Android 71 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 10.0 |
outerText
非标
|
Chrome 43 | Edge 12 | Firefox No | IE Yes | Opera Yes | Safari 6 | WebView Android 43 | Chrome Android 43 | Firefox Android No | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 4.0 |
pointercancel
event
|
Chrome 55 |
Edge
12
|
Firefox
59
|
IE
11
|
Opera ? | Safari No | WebView Android 55 | Chrome Android 55 | Firefox Android 29 | Opera Android ? | Safari iOS No | Samsung Internet Android 6.0 |
pointerdown
event
|
Chrome 55 |
Edge
12
|
Firefox
59
|
IE
11
|
Opera ? | Safari No | WebView Android 55 | Chrome Android 55 | Firefox Android 29 | Opera Android ? | Safari iOS No | Samsung Internet Android 6.0 |
pointerenter
event
|
Chrome 55 |
Edge
12
|
Firefox
59
|
IE
11
|
Opera ? | Safari No | WebView Android 55 | Chrome Android 55 | Firefox Android 29 | Opera Android ? | Safari iOS No | Samsung Internet Android 6.0 |
pointerleave
event
|
Chrome 55 |
Edge
12
|
Firefox
59
|
IE
11
|
Opera ? | Safari No | WebView Android 55 | Chrome Android 55 | Firefox Android 29 | Opera Android ? | Safari iOS No | Samsung Internet Android 6.0 |
pointermove
event
|
Chrome 55 |
Edge
12
|
Firefox
59
|
IE
11
|
Opera ? | Safari No | WebView Android 55 | Chrome Android 55 | Firefox Android 29 | Opera Android ? | Safari iOS No | Samsung Internet Android 6.0 |
pointerout
event
|
Chrome 55 |
Edge
12
|
Firefox
59
|
IE
11
|
Opera ? | Safari No | WebView Android 55 | Chrome Android 55 | Firefox Android 29 | Opera Android ? | Safari iOS No | Samsung Internet Android 6.0 |
pointerover
event
|
Chrome 55 |
Edge
12
|
Firefox
59
|
IE
11
|
Opera ? | Safari No | WebView Android 55 | Chrome Android 55 | Firefox Android 29 | Opera Android ? | Safari iOS No | Samsung Internet Android 6.0 |
pointerup
event
|
Chrome 55 |
Edge
12
|
Firefox
59
|
IE
11
|
Opera ? | Safari No | WebView Android 55 | Chrome Android 55 | Firefox Android 29 | Opera Android ? | Safari iOS No | Samsung Internet Android 6.0 |
spellcheck
|
Chrome 43 | Edge 12 | Firefox 2 | IE ? | Opera Yes | Safari 6 | WebView Android 43 | Chrome Android 43 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 4.0 |
style
|
Chrome 45 | Edge 12 | Firefox 1 | IE 8 | Opera 8 | Safari 11 | WebView Android 45 | Chrome Android 45 | Firefox Android 4 | Opera Android 10.1 | Safari iOS 11 | Samsung Internet Android 5.0 |
tabIndex
|
Chrome 1 |
Edge
18
|
Firefox 1 |
IE
部分支持
8
|
Opera Yes | Safari 6 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 1.0 |
title
|
Chrome 1 | Edge 12 | Firefox 1 | IE ? | Opera Yes | Safari 6 | WebView Android 4.4 | Chrome Android 18 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 1.0 |
transitioncancel
event
|
Chrome 74 | Edge ≤79 | Firefox 53 | IE ? | Opera 62 |
Safari
13.1
|
WebView Android 74 | Chrome Android 74 | Firefox Android 53 | Opera Android 53 |
Safari iOS
13.4
|
Samsung Internet Android 11.0 |
transitionend
event
|
Chrome
26
|
Edge
≤79
|
Firefox 51 | IE 10 |
Opera
12.1
|
Safari
6.1
|
WebView Android
≤37
|
Chrome Android
26
|
Firefox Android 51 |
Opera Android
12.1
|
Safari iOS
7
|
Samsung Internet Android
1.5
|
transitionrun
event
|
Chrome 74 | Edge ≤79 | Firefox 53 | IE ? | Opera 62 |
Safari
13.1
|
WebView Android 74 | Chrome Android 74 | Firefox Android 53 | Opera Android 53 |
Safari iOS
13.4
|
Samsung Internet Android 11.0 |
transitionstart
event
|
Chrome 74 | Edge ≤79 | Firefox 53 | IE ? | Opera 62 |
Safari
13.1
|
WebView Android 74 | Chrome Android 74 | Firefox Android 53 | Opera Android 53 |
Safari iOS
13.4
|
Samsung Internet Android 11.0 |
translate
|
Chrome 19 | Edge 79 | Firefox No | IE No | Opera No | Safari 6 | WebView Android 4.4 | Chrome Android 25 | Firefox Android 4 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android 1.5 |
完整支持
部分支持
不支持
兼容性未知
实验。期望将来行为有所改变。
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
见实现注意事项。
用户必须明确启用此特征。
使用非标名称。
HTMLElement
contentEditable
contextMenu
dir
hidden
innerText
isContentEditable
lang
offsetHeight
offsetLeft
offsetParent
offsetTop
offsetWidth
onabort
onanimationcancel
onanimationend
onanimationiteration
onauxclick
onblur
oncancel
oncanplay
oncanplaythrough
onchange
onclick
onclose
oncontextmenu
oncopy
oncuechange
oncut
ondblclick
ondurationchange
onended
onerror
onfocus
onformdata
ongotpointercapture
oninput
oninvalid
onkeydown
onkeypress
onkeyup
onload
onloadeddata
onloadedmetadata
onloadend
onloadstart
onlostpointercapture
onmousedown
onmouseenter
onmouseleave
onmousemove
onmouseout
onmouseover
onmouseup
onpaste
onpause
onplay
onplaying
onpointercancel
onpointerdown
onpointerenter
onpointerleave
onpointermove
onpointerout
onpointerover
onpointerup
onreset
onresize
onscroll
onselect
onselectionchange
onselectstart
onsubmit
ontouchcancel
ontouchstart
ontransitioncancel
ontransitionend
onwheel
outerText
title
BeforeUnloadEvent
DOMStringMap
ErrorEvent
GlobalEventHandlers
HTMLAnchorElement
HTMLAreaElement
HTMLAudioElement
HTMLBRElement
HTMLBaseElement
HTMLBaseFontElement
HTMLBodyElement
HTMLButtonElement
HTMLCanvasElement
HTMLContentElement
HTMLDListElement
HTMLDataElement
HTMLDataListElement
HTMLDialogElement
HTMLDivElement
HTMLDocument
HTMLEmbedElement
HTMLFieldSetElement
HTMLFormControlsCollection
HTMLFormElement
HTMLFrameSetElement
HTMLHRElement
HTMLHeadElement
HTMLHeadingElement
HTMLHtmlElement
HTMLIFrameElement
HTMLImageElement
HTMLInputElement
HTMLIsIndexElement
HTMLKeygenElement
HTMLLIElement
HTMLLabelElement
HTMLLegendElement
HTMLLinkElement
HTMLMapElement
HTMLMediaElement
HTMLMetaElement
HTMLMeterElement
HTMLModElement
HTMLOListElement
HTMLObjectElement
HTMLOptGroupElement
HTMLOptionElement
HTMLOptionsCollection
HTMLOutputElement
HTMLParagraphElement
HTMLParamElement
HTMLPictureElement
HTMLPreElement
HTMLProgressElement
HTMLQuoteElement
HTMLScriptElement
HTMLSelectElement
HTMLShadowElement
HTMLSourceElement
HTMLSpanElement
HTMLStyleElement
HTMLTableCaptionElement
HTMLTableCellElement
HTMLTableColElement
HTMLTableDataCellElement
HTMLTableElement
HTMLTableHeaderCellElement
HTMLTableRowElement
HTMLTableSectionElement
HTMLTemplateElement
HTMLTextAreaElement
HTMLTimeElement
HTMLTitleElement
HTMLTrackElement
HTMLUListElement
HTMLUnknownElement
HTMLVideoElement
HashChangeEvent
历史
ImageData
定位
MessageChannel
MessageEvent
MessagePort
Navigator
NavigatorGeolocation
NavigatorID
NavigatorLanguage
NavigatorOnLine
NavigatorPlugins
PageTransitionEvent
Plugin
PluginArray
PopStateEvent
PortCollection
PromiseRejectionEvent
RadioNodeList
Transferable
ValidityState
Window
WindowBase64
WindowEventHandlers
WindowTimers