HTML5 New Global Properties

1 , contentEditable property

<P contenteditable = "true"> This is a paragraph editable. Try to edit the text. </ P>

 

Attribute value is true, false, and classname, text changes can be compiled.

2 , spellcheck attribute

For the judge to input text and content domain, we will determine the right with wrong

Attribute value is true, false;

<input type="text" spellcheck="true">

3 , attributes tabindex

Hold the tab key or a mouse is used to obtain a focus sequence

Attribute value is a number (when a value of -1, the focus can not be obtained hold the tab key, the program can read the tabindex)

<a href="#" tabindex="1">1</a>

<a href="#" tabindex="3">3</a>

<a href="#" tabindex="2">2</a>

<ul tabindex="4">

    <li>11</li>

    <li>11</li>

    <li>11</li>

</ul>

Guess you like

Origin www.cnblogs.com/wwttc/p/11326384.html
Recommended