2016-11-25 77 views

回答

0

這取決於用戶的操作系統本地化配置或瀏覽器本地化支持或兩者,我不確定,例如我的MS Windows本地化配置。被設置爲Persian-Iran,它自動覆羽小數點當我添加lang="fa-IR"屬性<html>

<html lang="fa-IR" dir="rtl"> 

    <body> 
     <input type="number" step="0.2"> 
    </body> 
</html> 

樣品屏幕截圖:

Localized Input type number example