亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

執行完方法后關掉或隱藏彈出層iframe

執行完方法后關掉或隱藏彈出層iframe

米琪卡哇伊 2018-08-14 07:10:25
function createDialog(src, width, height) {var _doc_width = $(document).width();var _doc_height = $(document).height();var _html = "<div id='bg' style='position: absolute; z-index: 10000; display: block; left: 0px; top: 0px; opacity: 0.5; height: " + _doc_width + "px; width: " + _doc_width + "px; background-color:#CCC;'></div>";_html += "<div id='ifdiv'style='z-index:10001;background-color:#FFF;border:solid 10px #cef;position: fixed; left:128px; top:32px;'>";_html += "<iframe src='" + src + "' frameborder='0' id='rest1' name='rest1' style='width:" + width + "px;height:" + height + "px;overflow:visible;'></iframe></div>";$('body').append(_html);}這段JS代碼我是在網上找的,觸發這個函數,直接出現彈出層,就是把crop這個視圖放在了里面,然后我想執行完這個方法完,直接關掉或隱藏彈出層,怎么做?求指教。。。貼出代碼和截圖。。。求指教啊。。。
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 839 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號