母版页图像菜单导航 [英] Master Page Image Menu Navigation

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

问题描述

我刚刚开始学习asp.net,我只是为自己的网站设计了一个母版页.

我使用的菜单导航由图像组成.当鼠标悬停在每个图像上时,每个图像都会改变.

我想问的是,当单击图像链接并加载了相应的内容页面时,如何用与用于悬停属性相同的图像来更改内容页面中单击的链接的图像(状态)? />
非常感谢.

Hi, I just started learning asp.net and I just designed a master page for my website.

The menu navigation I used is made up of images. And each image changes when the mouse hovers over it.

What I want to ask is when the image link is clicked, and the corresponding content page is loaded, how will I change the image(state) of the clicked link in the content page with the same image used for the hover property?

Thank a lot.

推荐答案

使用Request对象在母版页中找到当前页,并为相应的链接设置CSS.
Find the current page in the master page using Request object and set the CSS for the corresponding link.


Hi添加一个隐藏的(无名称)链接按钮,并在CSS位置中使用Absalute将图像按钮精确显示在同一位置,并为链接按钮提供与图像相同的确切宽度和高度,并在ur代码中标记按钮clik. ... :)

问候
Vinay
Hi Add a hidden(no name) link button and put that image button exaclty at the same position using absalute in css positioning and give the exact width and height for link button same as image and hadle the button clik in u r code.....:)

Regards
Vinay


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

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