[英]HTML 5 form browser compatibility issue with Internet Explorer
為什么HTML5表單在IE 9上不兼容?
我沒有看到在Internet Explorer 9上驗證的表單。它適用於FF,Chrome和Safari,但不適用於Internet Explorer。
Internet Explorer缺少大多數HTML5功能,這就是您遇到問題的原因。
查看此站點,了解IE9兼容的內容:
形式
input type=text Partial
input type=search No
input type=tel No
input type=url No
input type=email No
input type=datetime No
input type=date No
input type=month No
input type=week No
input type=time No
input type=datetime-local No
input type=number No
input type=range No
input type=color No
input type=checkbox Yes
input type=image Yes
input type=file Partial
textarea Partial
select Partial
fieldset Partial
datalist No
keygen No
output No
progress No
meter No
字段
Field validation No
Association of controls and forms No
Other attributes No
CSS selectors No
Events Partial
Form validation No
由於IE9(相對)陳舊,微軟對支持新標准持謹慎態度,HTML5正處於前沿。
@Nida Hafeez,
看看這個: http : //html5readiness.com
你不應該使用HTML5驗證,我不會推薦。
永遠記住,用戶可以根據不同的瀏覽器類型,版本和啟用/禁用javascript或其他客戶端功能來克服客戶端驗證。
也許一個html5啟動器將為你工作檢查這個http://html5doctor.com/how-to-get-html5-working-in-ie-and-firefox-2/
在使用html5元素之前,您可以使用Modernizr檢查瀏覽器的兼容性。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.