<button> in different browser has different type if you not assign specific type. In IE8, the default type would be type="submit", not as mentioned in http://www.w3school.com.cn/tags/tag_button.asp . in FF, Chrome, default type would be "button" .
<button> default type
本文探讨了不同浏览器中按钮元素的默认行为差异。在 Internet Explorer 8 中,默认类型为 'submit',而在 Firefox 和 Chrome 中,则默认为 'button' 类型。此差异对于跨浏览器兼容性的前端开发尤为重要。

被折叠的 条评论
为什么被折叠?



