如何设置导航图像 [英] how to set images for navigation

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

问题描述

大家好,

这里的导航控制我使用了 mvcsitemapper 。我完成了导航,但我想设置导航图像。



描述: -

对于家庭我想使用一些图像进行家庭导航控制。这里我使用了imageurl但没有改变导航.Kindle帮助如何在这里设置我用过这么多选项但没有用。帮我完成这个任务

hi to all,
Here for navigation control i used mvcsitemapper.here i finished navigation but i want to set navigation images.

DESCRIPTION:-
For home i want to use some images for home navigation control.Here i used imageurl but no change in navigation.Kindle help how to set here i used so many options but no use.so Help me for this task

推荐答案

你可以使用Html.ActionLink来导航和使用Css来提供图像链接为



You can use Html.ActionLink to navigate and use Css to provide images to link as

<%= Html.ActionLink("Home", "Index", null, new { @class="homeCss" }) %>




.homeCss
{
    background: url(../Images/home.gif) no-repeat top left;
     display: block;
     width: 150px;
     height: 150px;
     
}


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

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