課程
/前端開發(fā)
/Bootstrap
/玩轉(zhuǎn)Bootstrap(基礎(chǔ))
<button>中為什么還要添加type="button'
2016-05-19
源自:玩轉(zhuǎn)Bootstrap(基礎(chǔ)) 3-17
正在回答
規(guī)范和便于識(shí)別
qq_永不言棄_16 提問者
應(yīng)為還需要 瀏覽器去讓他知道 基本的類型是什么? bootstrap 只是提供css樣式
因?yàn)镮E中<button>type的默認(rèn)值是button,但其他瀏覽器的默認(rèn)值是submit
舉報(bào)
告訴你使用Bootstrap,并且能夠獨(dú)立定制出適合自己的Bootstrap
5 回答一定要加type="button"??
2 回答為什么必須要寫type="button"呢?
4 回答<button class="close" type="button" data-dismiss="alert">&times;</button>
6 回答<input type="button">與<button></button>如何取舍,優(yōu)劣特點(diǎn)?
3 回答type="button"是必須的嗎
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-05-19
規(guī)范和便于識(shí)別
2018-05-17
應(yīng)為還需要 瀏覽器去讓他知道 基本的類型是什么? bootstrap 只是提供css樣式
2016-07-26
因?yàn)镮E中<button>type的默認(rèn)值是button,但其他瀏覽器的默認(rèn)值是submit