本文介紹了為 HTML 輸入設(shè)置默認(rèn)語言的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
如何設(shè)置輸入框的默認(rèn)鍵盤布局,例如當(dāng)頁(yè)面加載時(shí),我們可以用非英語的其他鍵盤語言輸入文本?
How to set default keyboard layout for input boxes, for example when the page gets loaded, we can type in an input text with another keyboard language else than English?
推薦答案
我會(huì)考慮 lang
屬性.但這是元信息,我真的不確定瀏覽器會(huì)用它做什么.自己沒試過.
I'd think about the lang
attribute. But this is meta-information, I'm really not sure the browser will do anything with it. Never tried it myself.
<input lang="is" ...>
這篇關(guān)于為 HTML 輸入設(shè)置默認(rèn)語言的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!