layer.open({
type:,//基本層類型:0(信息框,默認(rèn))1(頁(yè)面層)2(iframe層)3(加載層)4(tips層)
title:'標(biāo)題',//或給標(biāo)題加樣式:['文本', 'font-size:18px;']
closeBtn: 0, //不顯示關(guān)閉按鈕
content :'內(nèi)容',
area :'500px',//彈框設(shè)置大小,或 ['500px', '300px']
offset:‘a(chǎn)uto’,//坐標(biāo):默認(rèn)垂直水平居中、'100px'只定義top坐標(biāo),水平保持居中、 ['100px', '50px']同時(shí)定義top、left坐標(biāo)
fixed: false, //取消固定定位,因?yàn)楣潭ǘㄎ皇窍鄬?duì)body的
closeBtn: 0,//關(guān)閉按鈕不顯示
shadeClose:false,//禁止點(diǎn)擊陰影關(guān)閉窗口
move:false,//禁止點(diǎn)擊標(biāo)題拖動(dòng)
moveType: 1 //拖拽模式,0或者1
anim:0,//彈出動(dòng)畫(huà):默認(rèn)0(平滑放大),1(從上掉落),2(從最底部往上滑入),3(左滑入),4(左翻滾) ,5(漸顯),6(抖動(dòng))
maxmin:true,//開(kāi)啟最大化和最小化按鈕
shade: 0, //不顯示遮罩
btn: ['火速圍觀', '殘忍拒絕'],
btnAlign: 'c' ,//按鈕居中
yes:function(){
layer.closeAll();//關(guān)閉窗口
},
btn2:fucntion(){
layer.closeAll();//關(guān)閉窗口
},
style: 'position:fixed; left:0; top:0; width:100%; height:100%; border: none; -webkit-animation-duration: .5s; animation-duration: .5s;'//可設(shè)置窗口位置、大小、出現(xiàn)動(dòng)畫(huà)方式
})
【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!