由于播放的直播视频有多余的logo和聊天框等所以需要去掉,用Iframe标签显示目标网页的指定区域,视频可全屏可缩小
HTML代码
<html>
<head>
<title>显示视频指定区域</title>
</head>
<body>
<div align="center" style="margin:0 auto;">
<div style="width:800px;height:600px;overflow:hidden;border:0px">
<div style="width:500px;height:800px;margin:-100px 0px 0px -10px;">
<iFrame src="直播或视频地址" width="800" height="380" allowfullscreen="true" allowtransparency="true" scrolling="no">
</iFrame>
</div>
</div>
</div>
</body>
</html>