如何设置菜单的背景图像? [英] How to set background image for menu?

查看:98
本文介绍了如何设置菜单的背景图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,

我要设置背景图像.我使用了这种CSS样式.

Hai,

I want to set a background image. I used this css style.

.menuItem
 {

 background-image : url(\My Project\images\menu_bg.gif);

 }




这是正确的吗?请帮助我..




is it correct r not? please help me..

推荐答案

使用CSS设置背景,例如:
Setting background using CSS like:
background-image:url("Images/MenuStatic.gif");


非常好,应该可以工作.试试吧.

确保使用的URL有效并且图像位于指定位置.


is perfectly fine and should work. Try out.

Make sure that the URL used is valid and image is located at the specified location.


这篇关于如何设置菜单的背景图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆