iframe截取网站部分内容实现思路及代码

原创
2016/04/30 00:07
阅读数 894

使用iframe可以截取网站的部分内容,主要配合width、height、overflow等属性来实现的,具体示例如下

<div style="width:630px;height:350px;overflow:hidden;border:0px"> 
    <div style="width:800px;height:800px;margin:-810px 0px 0px -10px;"> 
        <iframe src="http://www.sci99.com/" width="960" height="1280" scrolling="no"></iframe> 
    </div> 
</div> 
<div style="width:800px;height:900px;overflow:hidden;border:0px"> 
    <div style="width:500px;height:900px;margin:-320px 0px 0px -10px;"> 
        <iframe src="http://www.sci99.com/details/monitorall.aspx" width="700" height="1024" scrolling="no"></iframe> 
    </div> 
</div>


展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
6 收藏
1
分享
返回顶部
顶部