HTML5 input type date, color, range support in Firefox and Internet Explorer

前端 未结 4 463
醉酒成梦
醉酒成梦 2020-12-08 20:05

I\'ve build all my website using many forms with HTML5 (using the input types date, color and range.)

Everything

4条回答
  •  旧巷少年郎
    2020-12-08 20:41

    Since HTML5 hasn't been completely standardized yet, not all browsers do support these input types. The intended behaviour is to fall back to .

    ↪ See here for more information on browser support for HTML5 input types.

    You can test for support using the Modernizr library or with some custom JavaScript. If you detect a certain HTML5 feature isn't available, you can fall back to JavaScript-based alternatives.

提交回复
热议问题