Heim  >  Artikel  >  Web-Frontend  >  html中如何给框架添加背景图_html/css_WEB-ITnose

html中如何给框架添加背景图_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:11:582090Durchsuche

我想在这样没办法显示图像


回复讨论(解决方案)

在框架中还有其他的元素,在其他的元素上应用背景就是了

加在iframe中的文档的body中或者让iframe透明,

看到楼上的前辈说在源页面body上家背景,这样做可以,这是无可置疑的
但想了一下,这样不是变成不是为iframe加背景了。楼主要的效果可能是
所有在这iframe显示的页面都公用该背景。
之后,我就相当然的以为给iframe 的style属性添加个background:url("背景图路径"),
结果是不可以的!


期待有更好的办法

同楼上,请各位高手前辈再帮我想想办法,在这里我先谢了

期待ing。。。

呃呃!~没有人理我了!~

不知道,学习了!

美女,
试一下

你在 
然后你在img.php里面的页面这样写

<html><head><title>内嵌</title></head><body style="background-image:url(../try/banner.jpg)"></body></html>

应该是可以的

只能在iframe连接的页面的body里写

我也求解啊。我这个弄了显示白色的呀!!

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn