网站地图    收藏   

主页 > 前端 > html教程 >

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

来源:自学PHP网    时间:2014-12-15 15:59 作者: 阅读:

[导读] 使用iframe可以截取网站的部分内容,主要配合width、height、overflow等属性来实现的,具体示例如下,需要的朋友不要错过...

使用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>

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论