支持将整个页面 iframe 嵌入到自己的页面中,从而可以起到隐藏『直播间域名』的效果,代码示例:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> html, body { width: 100%; height: 100%; } * { margin: 0; padding: 0; } iframe { border: none; } </style> </head> <body> <iframe src="http://shangzhibo.tv/watch/2501523?whole" style="width: 100%; height: 100%; overflow:hidden;" scrolling="no" allowfullscreen=""> </iframe> </body> </html>
查看 DEMO