layer的move要怎么用
生活随笔
收集整理的這篇文章主要介紹了
layer的move要怎么用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
百度了好久,終于知道了
想要可以拖動,默認是觸動title拖動,所以必須有title,看一下你的title設置了沒有,然后像下面里面的move一樣設置move
就這兩點
layer官方文檔:https://www.layui.com/doc/modules/layer.html#resize
//iframe窗layer.open({type : 2,title : '微信維護記錄',closeBtn : 1, //不顯示關閉按鈕shade : false,moveOut: true, // shadeClose: true,//點擊陰影部分關閉彈窗 // maxmin: true,area : '880px',// offset: 'rb', //右下角彈出// time: 2000, //2秒后自動關閉move : '.layui-layer-title',// offset : [ '', '' ],offset : '1%',resize:true,anim : 2,content : [ url, 'yes' ], //iframe的url,no代表不顯示滾動條success : function(layero, index) {layer.iframeAuto(index);},end : function() { //此處用于演示}});}?
總結
以上是生活随笔為你收集整理的layer的move要怎么用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 什么是人机交互技术?
- 下一篇: layer.js