特殊样式:imemode禁汉字,tabindex焦点

1,ime-mode共有4个值,如下,前两个可以输入汉字,后两个不能输入汉字。

    <input type="text" name="textfield" style="ime-mode:auto " />
    <input type="text" name="textfield" style="ime-mode:active " />
    <input type="text" name="textfield" style="ime-mode:inactive " />
    <input type="text" name="textfield" style="ime-mode:disabled " />

文章:http://www.cnblogs.com/goole/archive/2010/07/22/1783125.html

2,tabindex="0",如果按tab键,这个样式的控件最后获得输入焦点

tabindex="-1",按tab键,永远不会获得焦点。

tabindex值在1到32767之间,按tab键焦点从1到大移动。

    <span>姓名:<input name="username" type="text" id="username" tabindex="3" /></span>
    <span>手机:<input name="userphone" type="text" id="userphone" tabindex="1" /></span>
    <span>内容:<textarea rows="auto" cols="auto"  name="content" id="content" tabindex="0"  ></textarea></span>

按tab,焦点顺序:userphone -->  username  -->  content

3

原文地址:https://www.cnblogs.com/wang7/p/2816468.html