第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

怎么讓 按鈕彈出list-group呢?

<p class="pull-right visible-xs"></p> ?當(dāng)分辨率小的時(shí)候就彈出按鈕出來(lái) ?但是點(diǎn)擊按鈕的時(shí)候沒有顯示出列表框list-group出來(lái) ?各位好友求解

正在回答

4 回答

我查看了例子中的源碼,有個(gè)offcanvas.css和offcanvas.js需要加載。

offcanvas.css的源碼:

/*

?* Style tweaks

?* --------------------------------------------------

?*/

/*html,

body {

? overflow-x: hidden; ?Prevent scroll on narrow devices?

}

body {

? padding-top: 70px;

}

footer {

? padding: 30px 0;

}*/

/*

?* Off Canvas

?* --------------------------------------------------

?*/

@media screen and (max-width: 767px) {

? .row-offcanvas {

? ? position: relative;

? ? -webkit-transition: all .25s ease-out;

? ? ? ? ?-o-transition: all .25s ease-out;

? ? ? ? ? ? transition: all .25s ease-out;

? }

? .row-offcanvas-right {

? ? right: 0;

? }

? .row-offcanvas-left {

? ? left: 0;

? }

? .row-offcanvas-right

? .sidebar-offcanvas {

? ? right: -50%; /* 6 columns */

? }

? .row-offcanvas-left

? .sidebar-offcanvas {

? ? left: -50%; /* 6 columns */

? }

? .row-offcanvas-right.active {

? ? right: 50%; /* 6 columns */

? }

? .row-offcanvas-left.active {

? ? left: 50%; /* 6 columns */

? }

? .sidebar-offcanvas {

? ? position: absolute;

? ? top: 0;

? ? width: 50%; /* 6 columns */

? }

}


offcanvas.js的源碼:

$(document).ready(function () {

? $('[data-toggle="offcanvas"]').click(function () {

? ? $('.row-offcanvas').toggleClass('active')

? });

});


在 .html代碼中加載這兩個(gè)文件,樣式和行為才能起效。

貼兩個(gè)代碼片段,你可以根據(jù)這個(gè)代碼片段定位到你的代碼,做相應(yīng)修改:

這里調(diào)用了樣式,button調(diào)用了data-toggle方法

<div class="container-fluid">

? <div class="row row-offcanvas row-offcanvas-right">

? ? <div class="col-sm-9">

? ? ? <p class="pull-right visible-xs">

? ? ? ? <button class="btn-xs btn btn-primary" data-toggle="offcanvas">Toggle</button>

? ? ? </p>


下面是list-group需要加載的樣式

<div class="col-sm-3 sidebar-offcanvas" id="sidebar">

? ? ? <ul class="list-group">


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

_Sun_ 提問者

非常感謝!
2017-04-19 回復(fù) 有任何疑惑可以回復(fù)我~

應(yīng)該使用data-toggle綁定

0 回復(fù) 有任何疑惑可以回復(fù)我~

會(huì)彈。。。前面沒點(diǎn)出來(lái)

0 回復(fù) 有任何疑惑可以回復(fù)我~

官方這個(gè)網(wǎng)站也不會(huì)彈出來(lái)的,你可以看看


http://getbootstrap.com/examples/offcanvas/

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

怎么讓 按鈕彈出list-group呢?

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)