设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 手机 数据
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

iframe标签用法详解(属性、透明、自适应高度)(2)

发布时间:2020-05-10 17:53 所属栏目:116 来源:站长网
导读:iframe src="http://www.jb51.net/web/ads_top_tian.html" allowtransparency="true" title="test" frameborder="0" scrolling="no"/iframe当然前提是iframe页面中没有设置颜色 [code] 注:iframe透明主要是使用了


<iframe src="http://www.jb51.net/web/ads_top_tian.html" allowtransparency="true" title="test" frameborder="0" scrolling="no"></iframe>当然前提是iframe页面中没有设置颜色
[code]
注:iframe透明主要是使用了 allowtransparency="true"
<strong>3、iframe自适应高度
</strong>由于篇幅过长,大家可以移步这里查看
<a target="_blank" href="https://www.jb51.net/article/15780.htm">https://www.jb51.net/article/15780.htm</a>
<strong>4、通过js输出iframe广告代码
</strong>[code]
document.write('<iframe align=middle marginwidth=0 marginheight=0 src="http://img.jb51.net/imgby/468_1.htm" frameborder=no scrolling=no width=660 height=80></iframe>');



5、有时候我们需要考虑用户的浏览器是否支持iframe标签,那么就需要如下的写法


复制代码

代码如下:


<iframe frameborder="0" src="https://www.jb51.net/">
您的浏览器不支持嵌入式框架,或者当前配置为不显示嵌入式框架。
</iframe>

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读