如果你有个域名和服务器,但是你又想要目标网站的内容,可以选择套壳,用html的iframe标签实现。
代码如下:
<!DOCTYPE html><html lang="zh"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link rel="stylesheet" href="main.css"><title>淘惠啦源码-专业的源码分享平台</title><meta name="keywords" content="网站源码,免费源码,小程序源码,系统源码,PHP源码,php,网站模板,商城源码,源码分享,源码下载,破解源码,资源分享,商业源码,淘惠啦源码,淘惠啦源码网, 源码分享平台, 开源项目" /><meta name="description" content="淘惠啦源码是一个专业的源码分享平台,提供各类优质的开源项目源码,为开发者们提供便捷高效的学习与交流平台。"><link rel="shortcut icon" href="https://www.njymz.com/favicon.ico" type="image/x-icon"><style>body {margin: 0;padding: 0;}#myiframe {width: 100%;height: 100vh;border: none;}</style><script>function changeFrameHeight() {var ifm = document.getElementById("myiframe");ifm.height = document.documentElement.clientHeight;}window.onresize = function() {changeFrameHeight();};</script></head><body><iframe src="https://www.njymz.com/" id="myiframe" scrolling="yes" onload="changeFrameHeight()" frameborder="0"></iframe></body></html><script type="text/javascript" src="//api.tongjiniao.com/c?_=621979569817518080" async></script><!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="main.css"> <title>淘惠啦源码-专业的源码分享平台</title> <meta name="keywords" content="网站源码,免费源码,小程序源码,系统源码,PHP源码,php,网站模板,商城源码,源码分享,源码下载,破解源码,资源分享,商业源码,淘惠啦源码,淘惠啦源码网, 源码分享平台, 开源项目" /> <meta name="description" content="淘惠啦源码是一个专业的源码分享平台,提供各类优质的开源项目源码,为开发者们提供便捷高效的学习与交流平台。"> <link rel="shortcut icon" href="https://www.njymz.com/favicon.ico" type="image/x-icon"> <style> body { margin: 0; padding: 0; } #myiframe { width: 100%; height: 100vh; border: none; } </style> <script> function changeFrameHeight() { var ifm = document.getElementById("myiframe"); ifm.height = document.documentElement.clientHeight; } window.onresize = function() { changeFrameHeight(); }; </script> </head> <body> <iframe src="https://www.njymz.com/" id="myiframe" scrolling="yes" onload="changeFrameHeight()" frameborder="0"></iframe> </body> </html> <script type="text/javascript" src="//api.tongjiniao.com/c?_=621979569817518080" async></script><!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="main.css"> <title>淘惠啦源码-专业的源码分享平台</title> <meta name="keywords" content="网站源码,免费源码,小程序源码,系统源码,PHP源码,php,网站模板,商城源码,源码分享,源码下载,破解源码,资源分享,商业源码,淘惠啦源码,淘惠啦源码网, 源码分享平台, 开源项目" /> <meta name="description" content="淘惠啦源码是一个专业的源码分享平台,提供各类优质的开源项目源码,为开发者们提供便捷高效的学习与交流平台。"> <link rel="shortcut icon" href="https://www.njymz.com/favicon.ico" type="image/x-icon"> <style> body { margin: 0; padding: 0; } #myiframe { width: 100%; height: 100vh; border: none; } </style> <script> function changeFrameHeight() { var ifm = document.getElementById("myiframe"); ifm.height = document.documentElement.clientHeight; } window.onresize = function() { changeFrameHeight(); }; </script> </head> <body> <iframe src="https://www.njymz.com/" id="myiframe" scrolling="yes" onload="changeFrameHeight()" frameborder="0"></iframe> </body> </html> <script type="text/javascript" src="//api.tongjiniao.com/c?_=621979569817518080" async></script>
说明一下:
以上代码实现,自动适配屏幕缩放。
无边框,带滚动
自动适配目标网址的SSL.
再最下方的iframe src=后方替换自己的目标网址即可
© 版权声明
THE END
暂无评论内容