课程
/前端开发
/Bootstrap
/玩转Bootstrap(基础)
一定要加type="button"??
2015-08-24
源自:玩转Bootstrap(基础) 3-17
正在回答
请始终为按钮规定 type 属性。Internet Explorer 的默认类型是 "button",而其他浏览器中(包括 W3C 规范)的默认值是 "submit"。
type设定按钮的种类,具体的可以去w3cschool上去查看相关内容
好吧,不能不加,不加是默认submit
不加也没有影响
举报
告诉你使用Bootstrap,并且能够独立定制出适合自己的Bootstrap
3 回答<button>中为什么还要添加type="button'
2 回答为什么必须要写type="button"呢?
4 回答为什么要加type
3 回答type="button"是必须的吗
4 回答<button class="close" type="button" data-dismiss="alert">&times;</button>
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号