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

為了賬號安全,請及時綁定郵箱和手機立即綁定

怎樣讓模態(tài)框居中呢?現(xiàn)在只能設(shè)置居上居下,但不能垂直居中,可以做到垂直居中嗎???

正在回答

1 回答

可以在bootstrap.js文件900行后面添加如下代碼,便可以實現(xiàn)垂直居中。

that.$element.children().eq(0).css("position", "absolute").css({
????????? "margin":"0px",
????????? "top": function () {
????????????? return (that.$element.height() - that.$element.children().eq(0).height()-40) / 2 + "px";
????????? },
????????? "left": function () {
????????????? return (that.$element.width() - that.$element.children().eq(0).width()) / 2 + "px";
????????? }
????? });

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

robin6036

試了,不管用啊。。。。
2015-01-16 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

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