HTMLElement
参考文档:MDN HTMLElement
|
属性名称 |
属性类型 |
Description |
|
分配给元素的access key |
||
|
A string that represents the element's assigned access key. |
||
|
获取/设置元素的可编辑状态 |
||
|
指示元素的内容是否可被编辑 |
||
|
允许读写元素的自定义data特性(data-*) |
||
|
获取/设置元素的方向 |
||
|
any |
||
|
获取/设置元素属性、文本、内容的语言(Gets/sets the language of an element's attributes, text, and element contents). |
||
|
double |
The height of an element, relative to the layout. |
|
|
double |
The distance from this element's left border to its offsetParent's left border. |
|
|
The element from which all offset calculations are currently computed. |
||
|
double |
The distance from this element's top border to its offsetParent's top border. |
|
|
double |
The width of an element, relative to the layout. |
|
|
Controls spell-checking (present on all HTML elements) |
||
|
An object representing the declarations of an element's style attributes. |
||
|
long |
Gets/sets the position of the element in the tabbing order. |
|
|
A string that appears in a popup box when mouse is over the element. |
||
-
- 实现了GlobalEventHandlers的event属性:所有onXYZ形式(如:onClick)
-
Returns the event handling code for the touchstart event.
Returns the event handling code for the touchend event.
Returns the event handling code for the touchmove event.
Returns the event handling code for the touchenter event.
Returns the event handling code for the touchleave event.
Returns the event handling code for the touchcancel event.
|
Name & Arguments |
Return |
Description |
|
void |
从当前已经获得焦点的元素上移除键盘焦点(Removes keyboard focus from the currently focused element). |
|
|
void |
在该元素上触发click事件(Sends a mouse click event to the element). |
|
|
void |
让当前元素获取焦点(Makes the element the current keyboard focus). |
|
|
void |
HTMLElement的更多相关文章
- DOM笔记(三):Element接口和HTMLElement接口
一.Element接口 Element接口表示一个元素,该接口扩展自Node接口,自然继承了Node接口的属性和方法,也有一套针对元素的属性和方法. Element接口常见的属性比较少,常用的就是一个 ...
- HTMLElement.hidden; CSS Attr Selectors的用处; DOM的className方法; ::before和::after伪元素
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidden https://codepen.io/pen/ <elem ...
- EventTarge Node Docuement Element HTMLElement 关系
综述: 可以将其看做是依次继承的关系: Node Node A Node is an interface from which a number of DOM types inherit, and a ...
- TypeError: Cannot read property '$$' of undefined at HTMLElement._attached.wx.getPlatform._touchstartHandlerForDevtools
TypeError: Cannot read property '$$' of undefined at HTMLElement._attached.wx.getPlatform._touch ...
- 关于Typescript - HTMLElement上使用append / prepend函数的问题
因最近在做浏览器打印界面水印的问题,用到后台动态创建标签,样式的处理用到了append,prend函数,Angular build打包的时候却抛出了异常↓ ERROR in src/app/route ...
- 在angular项目中使用bootstrap的tooltip插件时,报错Property 'tooltip' does no t exist on type 'JQuery<HTMLElement>的解决方法和过程
在angular4的项目中需要使用bootstrap的tooltip插件. 1. 使用命令安装jQuery和bootstrap npm install bootstrap jquery --save ...
- React报错之Property 'X' does not exist on type 'HTMLElement'
正文从这开始~ 总览 在React中,当我们试图访问类型为HTMLElement 的元素上不存在的属性时,就会发生Property 'X' does not exist on type 'HTMLEl ...
- React报错之Property 'value' does not exist on type 'HTMLElement'
正文从这开始~ 总览 当我们试图访问一个类型为HTMLElement的元素上的value属性时,会产生"Property 'value' does not exist on type 'HT ...
- 将HTML格式的String转化为HTMLElement
代码如下: <meta charset="UTF-8"> <title>Insert title here</title> </head& ...
随机推荐
- Python单元测试PyUnit框架轻度整改
原理 参考:单元测试原理 背景 年后有段时间没写代码了,所以趁着周末找了个python单元测试玩下,测试自己的Android应用.发现PyUnit虽然在单个脚本文件中添加多个测试用例,比如官网提供的方 ...
- .Net下的分库分表帮助类——用分库的思想来分表
简介 在大型项目中,我们会遇到分表分库的情景. 分库,将不同模块对应的表拆分到对应的数据库下,其实伴随着公司内分布式系统的出现,这个过程也是自然而然就发生了,对应商品模块和用户模块, ...
- 正则表达式中的match,test,exec,search的返回值
今天突然被问到了正则表达式,因为长时间不用突然不知道怎么用了,只知道有这么个东西.然后去网上查了一下,感觉写的不少,但解释的有点模糊,今天我来浅谈一下. 1,match的用法 A,在不加全局“g”的情 ...
- webkit 渲染机制
最近看了< webkit技术内幕 >,虽然并不能完全看懂,但是对浏览器的渲染机制也算是有了一个比较完整的认识. 我们从浏览器地址栏输入网址开始到web页面被完整的呈现在眼前,大概的经过了这 ...
- Odd Numbers of Divisors
给出一个正奇数K,两个正整数low,high. 有多少整数属于[low, high],且包含K个因子. 数据 C(0 < C < 1e5),测试样例数. (1 < K < 10 ...
- 20150817---成长日记1---DelayQueue&&Delayed&&Other
今天第一次接触DelayQueue,源于项目中的话单解析入库的拆分线程中引入,首先简单了解一下DelayQueue: DelayQueue是一个无界阻塞队列,只有在延迟期满时才能从中提取元素.该队列的 ...
- Ant学习总结5(配合Ant视频8,9)
重点: Ant的属性介绍: <property name="build.dir" value="build"/>注意:一般对于常量都会定义成为属性 ...
- 第二章:JavaScript对象
一.window对象 1.属性 2.方法 二.history对象 1.方法 三.location对象 1.属性 2.方法 四.Document对象 1.属性 2.方法
- 用OC和Swift一起说说二叉树
前言: 一:在计算机科学中,二叉树是每个节点最多有两个子树的树结构.通常子树被称作"左子树"(left subtree)和"右子树"(right subt ...
- Linux 安装DenyHost防止ssh被暴力破解
DenyHosts介绍 当你的linux服务器暴露在外网当中时,服务器就极有可能会遭到互联网上的扫描软件进行扫描,然后试图连接ssh端口进行暴力破解(穷举扫描).如果遇到这个问题,一款非常有用的工具D ...