html – iframe背景图片
发布时间:2020-12-14 16:43:05 所属栏目:资源 来源:网络整理
导读:我的页面上有一个iframe.我在其上插入了背景图片.但它没有显示图像.这是我的代码. iframe scrolling="auto" allowtransparency="true" name="main" style="width:100%;height:90%" style="background-image:url(img/bg2.jpg)" /iframe 解决方法 试试这个: i
我的页面上有一个iframe.我在其上插入了背景图片.但它没有显示图像.这是我的代码.
<iframe scrolling="auto" allowtransparency="true" name="main" style="width:100%;height:90%" style="background-image:url(img/bg2.jpg)"> </iframe> 解决方法
试试这个:
<iframe scrolling="auto" allowtransparency="true" name="main" style="width:100%;height:90%;background-image:url(img/bg2.jpg)"> </iframe> 如果它不起作用将背景图像移动到iframe的容器. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |