課程
/前端開發
/Bootstrap
/玩轉Bootstrap(JS插件篇)
個人覺得4-9,4-10兩節都很有問題,代碼運行效果與實際不符,請審查
2015-04-20
源自:玩轉Bootstrap(JS插件篇) 4-9
正在回答
感覺可以借鑒之前學的checkbox的思路來寫
<div?class="btn-group"?data-toggle="buttons"> ????<label?class="btn?btn-primary"?><input?type="checkbox"?name="options">Male</label> </div>
第一次點擊有用顏色變深,再次點擊無變化;
官方文檔
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.
謝謝,你提出的問題,我們會好好看一下的。
舉報
帶領大家學習怎么使用JS自由控制Bootstrap中提供的組件
2 回答按鈕狀態切換沒作用啊
1 回答4-6 按鈕插件
1 回答使用button按鈕作為關閉按鈕
3 回答按鈕點擊后為什么沒有效果
1 回答為什么運行之后沒效果?點擊按鈕沒彈窗?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-06-26
感覺可以借鑒之前學的checkbox的思路來寫
2015-04-22
第一次點擊有用顏色變深,再次點擊無變化;
官方文檔
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
謝謝,你提出的問題,我們會好好看一下的。