照恩

  1. 设计草案

input 데이터의 자판입력모드의 한글/영문 자동전환, 영문고정 하는 방법 웹프로그래밍 팁

 

input 태그의 style 속성의 ime-mode 변경으로 한글/영문의 자동전환이나 영문만 입력이 되도록 있다.

   

style="ime-mode:active" - 한글로 입력됨(자판이 영문모드여도 자동으로 한글 전환 처리)


style="ime-mode:inactive" - 
영문으로 입력됨(자판이 한글모드여도 자동으로 영문 전환 처리)

   

style="ime-mode:disabled" - 영문만 입력가능함(자판으로 한글모드로 변환하더라도 무효 처리)


적용예


<input type="text" style="ime-mode:active">
한글모드로 변환

   

<input type="text" style="ime-mode:inactive">영문모드로 변환

   

<input type="text" style="ime-mode:disabled">영문만 입력가능

양식의

posted @ 2015-07-02 12:31  Jweb2  阅读(4279)  评论(0编辑  收藏  举报