日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

html 弹出加载页面,magnific popup:将整个html页面加载到弹出窗口中

發布時間:2023/12/10 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html 弹出加载页面,magnific popup:将整个html页面加载到弹出窗口中 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

我想用彈出的插件在彈出窗口中加載一個完整的html頁面。如果我嘗試:

Edit images

$('#edit-images-btn').magnificPopup({

type: 'ajax'

});

它產生了這個:

這在圖形上非常符合我的要求,但問題是的內容直接插入到dom中,而不是放在保護性的iframe中。這不可能是好事。我想要大膽的彈出窗口為內容創建一個不可見的iframe。我在控制臺中也遇到了一些奇怪的js錯誤:

Failed to load resource: the server responded with a status of 405 (Method Not Allowed) http://maps.googleapis.com/maps/api/js?key=AIzaSyBW_Py3pNsiSifVJzqL8J28LFCQ6P1KaX0&sensor=false&libraries=places&_=1389102487002

Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8008' is therefore not allowed access. http://maps.googleapis.com/maps/api/js?key=AIzaSyBW_Py3pNsiSifVJzqL8J28LFCQ6P1KaX0&sensor=false&libraries=places&_=1389102487002

XMLHttpRequest cannot load http://maps.googleapis.com/maps/api/js?key=AIzaSyBW_Py3pNsiSifVJzqL8J28LFCQ6P1KaX0&sensor=false&libraries=places&_=1389102487002. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8008' is therefore not allowed access.

這些錯誤可能是無效的html結構或谷歌地圖api多次包含的結果。不確定。它可能會通過iframing內容來解決。

總結

以上是生活随笔為你收集整理的html 弹出加载页面,magnific popup:将整个html页面加载到弹出窗口中的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。