为什么.png图像未设置到菜单? [英] why .png images are not set to the menus?
本文介绍了为什么.png图像未设置到菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的菜单控件中,我放置了1张背景图片(.png).该图像不起作用.为什么?
背景:#7795BD url(menu_bg.png)repeat-x;
In my menu control i put 1 background image(.png). That image doesn''t work.why?
background:#7795BD url(menu_bg.png) repeat-x;
推荐答案
确保图像URL正确(确实是与CSS相同的目录?),将URL 用引号引起来.
请参阅:
http://www.w3schools.com/css/css_background.asp [
Make sure the image URL is correct (really, the same directory as the CSS?) and enclose the URL in quotation marks.
Please see:
http://www.w3schools.com/css/css_background.asp[^].
—SA
这篇关于为什么.png图像未设置到菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文