# 使用iframe嵌套另一页面

- Link: https://yjyj.net/css/3816.html
- Published: 2005-12-13T20:20:09+08:00
- Author: 小 虾

如果你要在网站上插入一些广告代码，又不想让这些广告网站影响速度的话，那么，使用iframe
最合适不过了。方法是：将这些广告代码放到一个独立的页面去，然后在首页用如下的代码
将该页面嵌入即可，这样就不会因为广告页面的延迟而拖了整个首页的显示，代码如下：
 
< iframe frameborder=0 leftmargin=0 marginheight=0 marginwidth=0 scrolling=no src
="[http:///c348.html](https://yjyj.net/css/3816.html#)” topmargin=0 width=700 height
=440 > < /iframe>

📚 【[前端杂烩](https://yjyj.net/category/css)】专栏延伸阅读与热门精选（[全站文章归档](https://yjyj.net/archive)）：

 * [表格特效代码](https://yjyj.net/css/3814.html)
 * [CSS 盒模型边界重叠 (Margin Collapse) 原理与解决方案](https://yjyj.net/css/3536.html)
 * [网摘大全代码，迅速提高网站流量](https://yjyj.net/css/3836.html)
 * [网页框架代码](https://yjyj.net/css/3870.html)
 * 热门必读[DMIT 全线缺货, 只剩搬瓦工了](https://yjyj.net/discover/7787.html)
 * 热门必读[俩月了, DMIT 终于补货了!](https://yjyj.net/share/7795.html)
