HTML maxlength attribute not working on chrome and safari?

前端 未结 7 1735
借酒劲吻你
借酒劲吻你 2020-12-15 15:06


        
7条回答
  •  盖世英雄少女心
    2020-12-15 15:42

    Speaking of HTML 4.01 there is no such type as "number". Speaking of HTML 5 FF and IE do not yet know the number type if http://www.w3schools.com/html5/html5_form_input_types.asp is correct.

    /edit: So FF and IE will probably fallback to text and this is why maxlength will work.

提交回复
热议问题