有三种方式:

一、

<input type="text" readonly="readonly" />

二、

<input type="text" onfocus="this.blur()" />

三、

<input type="text"  />
$("#box").focus(function(){
                  document.activeElement.blur();
              })

 

相关文章: