課程
/前端開(kāi)發(fā)
/Bootstrap
/玩轉(zhuǎn)Bootstrap(JS插件篇)
個(gè)人覺(jué)得4-9,4-10兩節(jié)都很有問(wèn)題,代碼運(yùn)行效果與實(shí)際不符,請(qǐng)審查
2015-04-20
源自:玩轉(zhuǎn)Bootstrap(JS插件篇) 4-9
正在回答
感覺(jué)可以借鑒之前學(xué)的checkbox的思路來(lái)寫(xiě)
<div?class="btn-group"?data-toggle="buttons"> ????<label?class="btn?btn-primary"?><input?type="checkbox"?name="options">Male</label> </div>
第一次點(diǎn)擊有用顏色變深,再次點(diǎn)擊無(wú)變化;
官方文檔
http://v3.bootcss.com/javascript/#buttons-single-toggle
如下:
Add data-toggle="button" to activate toggling on a single button.
Pre-toggled buttons need .active and aria-pressed="true"
For pre-toggled buttons, you must add the .active class and the aria-pressed="true" attribute to the button yourself.
謝謝,你提出的問(wèn)題,我們會(huì)好好看一下的。
舉報(bào)
帶領(lǐng)大家學(xué)習(xí)怎么使用JS自由控制Bootstrap中提供的組件
2 回答按鈕狀態(tài)切換沒(méi)作用啊
1 回答4-6 按鈕插件
1 回答使用button按鈕作為關(guān)閉按鈕
3 回答按鈕點(diǎn)擊后為什么沒(méi)有效果
1 回答為什么運(yùn)行之后沒(méi)效果?點(diǎn)擊按鈕沒(méi)彈窗?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢(xún)優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2019-06-26
感覺(jué)可以借鑒之前學(xué)的checkbox的思路來(lái)寫(xiě)
2015-04-22
第一次點(diǎn)擊有用顏色變深,再次點(diǎn)擊無(wú)變化;
官方文檔
http://v3.bootcss.com/javascript/#buttons-single-toggle
如下:
Add data-toggle="button" to activate toggling on a single button.
Pre-toggled buttons need .active and aria-pressed="true"
For pre-toggled buttons, you must add the .active class and the aria-pressed="true" attribute to the button yourself.
2015-04-21
謝謝,你提出的問(wèn)題,我們會(huì)好好看一下的。