http://www.w3schools.com/tags/tag_button.asp
Inside a <button> element you can put content, like text or images. This is the difference between this element and buttons created with the <input> element.
Tip: Always specify the type attribute for a <button> element. Different browsers may use different default types for the <button> element.
Important: If you use the <button> element in an HTML form, different browsers may submit different values. Internet Explorer, prior version 9, will submit the text between the <button> and </button> tags, while other browsers will submit the content of the value attribute. Use the <input> element to create buttons in an HTML form.
Inside a <button> element you can put content, like text or images. This is the difference between this element and buttons created with the <input> element.
Tip: Always specify the type attribute for a <button> element. Different browsers may use different default types for the <button> element.
Important: If you use the <button> element in an HTML form, different browsers may submit different values. Internet Explorer, prior version 9, will submit the text between the <button> and </button> tags, while other browsers will submit the content of the value attribute. Use the <input> element to create buttons in an HTML form.
本文详细介绍了HTML中的按钮元素(<button>)的使用方法及其与<input>元素的区别。强调了始终指定<button>元素类型属性的重要性,并指出不同浏览器可能会提交不同的值。
3872

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



