課程
/前端開(kāi)發(fā)
/Bootstrap
/基于bootstrap的網(wǎng)頁(yè)開(kāi)發(fā)
點(diǎn)擊關(guān)于之后,頂部導(dǎo)航條會(huì)移動(dòng)一下,是怎么回事?
2016-11-05
源自:基于bootstrap的網(wǎng)頁(yè)開(kāi)發(fā) 3-11
正在回答
彈出框出來(lái)后,右側(cè)滾動(dòng)條隱藏了
寒心狂4184527 提問(wèn)者
我修改了一下源代碼:
Modal.prototype.setScrollbar = function () {
? ? var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
? ? if(this.scrollbarWidth){
? ? ? this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
? ? ? .children('*[class*="navbar-fixed"]').css("padding-right",this.scrollbarWidth)//阻止導(dǎo)航欄抖動(dòng)
? ? }
? }
? Modal.prototype.resetScrollbar = function () {
? ? this.$body.css('padding-right', '').children('*[class*="navbar-fixed"]').css("padding-right","")
舉報(bào)
Bootstrap框架的基礎(chǔ)教程,學(xué)會(huì)用Bootstrap前端框架搭建網(wǎng)頁(yè)
3 回答老師為什么點(diǎn)擊彈出后 頂部導(dǎo)航會(huì)錯(cuò)位一下 關(guān)閉彈出框會(huì)恢復(fù)原先樣子
2 回答老師為什么點(diǎn)擊彈出后 頂部導(dǎo)航會(huì)錯(cuò)位一下 關(guān)閉彈出框會(huì)恢復(fù)原先樣子
1 回答點(diǎn)擊 關(guān)于 為什么導(dǎo)航欄整體往右移
2 回答點(diǎn)擊關(guān)于之后,頁(yè)面整體向右移動(dòng)
1 回答導(dǎo)航固定在頂部就無(wú)法讓下面的內(nèi)容隨之下移了,它是浮動(dòng)在上方的
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-11-08
彈出框出來(lái)后,右側(cè)滾動(dòng)條隱藏了
2016-11-26
我修改了一下源代碼:
Modal.prototype.setScrollbar = function () {
? ? var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
? ? if(this.scrollbarWidth){
? ? ? this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
? ? ? .children('*[class*="navbar-fixed"]').css("padding-right",this.scrollbarWidth)//阻止導(dǎo)航欄抖動(dòng)
? ? }
? }
? Modal.prototype.resetScrollbar = function () {
? ? this.$body.css('padding-right', '').children('*[class*="navbar-fixed"]').css("padding-right","")
? }