The front page Global Properties

1. hidden

hidden is a Boolean attribute that represents the current page elements are no longer associated with the page, the browser does not render this element, so you will not see it on the page. Equivalent display: none

<p hidden>本句不会显示在页面上。</p>

2. contenteditable

It allows the user to modify the content

<p contenteditable="true">
鼠标点击,本句内容可修改。
</p>

3. draggable

Can I use Drag and Drop API drag element

<div draggable="true">按住鼠标左键拖动试试</div>

4. title

Element is used to add additional instructions. Most browsers, the mouse was suspended in the above element, an attribute value as a floating title will prompt displayed.

<div title="版权说明">
  <p>本站内容使用创意共享许可证,可以自由使用。</p>
</div>

The event handling properties

onabort, onautocomplete, onautocompleteerror, onblur, oncancel, oncanplay, oncanplaythrough, onchange, onclick, onclose, oncontextmenu, oncuechange, ondblclick, ondrag, ondragend, ondragenter, ondragexit, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreset, onresize, onscroll, onseeked, onseeking, onselect, onshow, onsort, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, onvolumechange, onwaiting

Guess you like

Origin www.cnblogs.com/dobeco/p/11408607.html
Recommended