Home  >  Article  >  Web Front-end  >  关于html背景图片的显示问题_html/css_WEB-ITnose

关于html背景图片的显示问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:01:501006browse

jsp
    pageEncoding="ISO-8859-1"%>
nbsp;html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">




OnlinePreView




css
body{
background-image:url(F:/FinalDesign/OnlinePreview/WebContent/img/background.jpg);
}
在ie和eclipse内置的浏览器都可以显示,但是360不显示,我想要他们全部兼容,怎么改?
请大神指教。


回复讨论(解决方案)

感觉你这个没问题 啊,360浏览器的内核是IE的,应该不会出现不兼容的情况吧

路径为什么都用绝对路径?

路径为什么都用绝对路径?


用绝对路径是为了专一解决这个问题,万一我写错了呢,哈哈,等这个问题解决了我会改回来的。

感觉你这个没问题 啊,360浏览器的内核是IE的,应该不会出现不兼容的情况吧


360浏览器的确不能显示

请看图

额,我想说的是
background-image:url(F:/FinalDesign/OnlinePreview/WebContent/img/background.jpg)
在路径里边不应该用双引号括起来的么?
 body{background-image:url("...")}

额,我想说的是
background-image:url(F:/FinalDesign/OnlinePreview/WebContent/img/background.jpg)
在路径里边不应该用双引号括起来的么?
 body{background-image:url("...")}

这个我用单引号试过,效果是一样的。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn