当前位置:主页 > 查看内容

使用iframe在网页中嵌入其他网页的方法

发布时间:2021-05-20 00:00| 位朋友查看

简介:iframe使用方法: 复制代码 代码如下: DIV align=centerIFRAME src="a href="https://www.jb51.net"https://www.jb51.net/a" frameBorder=0 marginwidth=0 marginheight=0 scrolling=no style="width168:px;height:50px;" width=168 height=50 scrolling=no……

iframe使用方法:
 

复制代码
代码如下:

<DIV align=center><IFRAME src="<a href="https://www.jb51.net">https://www.jb51.net</a>" frameBorder=0 marginwidth=0 marginheight=0 scrolling=no style="width168:px;height:50px;" width=168 height=50 scrolling=no ALLOWTRANSPARENCY="true"></IFRAME></DIV>
  
 
说明:这是一个嵌入含有天气预报的应用实例。这个效果最常用。其中:
 
1、"https://www.jb51.net" 为嵌入的网页的地址;
2、width="168px"  height="50px"为嵌入的网页的宽度和高度,数值越大,范围越大;要隐藏显示嵌入的内容,可把这两个数值设置为 0 ;
3、scrolling="no" 为嵌入的网页的滚动设置,当内容范围大时,可设置为允许滚动为 scrolling="yes"。 ALLOWTRANSPARENCY="true" 为允许透明设置,把true改为no为不透明。下同;
4、frameBorder=0 为嵌入的网页的边框设置,0 表示无边框,1 表示边框粗细,数值越大边框越粗。下同;
5、marginwidth=0 marginheight=0 设置嵌入网页到边距的距离,0 表示无边距。


原文链接:https://m.jb51.net/web/150062.html
本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!

推荐图文


随机推荐