使用< asp:menu ... [英] Working with <asp:menu...

查看:68
本文介绍了使用< asp:menu ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



您好,

有人知道指向asp:menu的自定义示例的链接吗?


很多提前预订。

S

解决方案

" Smith" < Sm *** @ pricateemail.com写信息

新闻:Og ************** @ TK2MSFTNGP05.phx.gbl ...


有人知道指向asp:menu自定义示例的链接吗?



1)启动你的互联网浏览器(例如IE,FireFox,Opera,Netscape等)


2)导航到< a rel =nofollowhref =http://www.google.comtarget =_ blank> http://www.google.com


3)在框中输入以下文字:


< asp:菜单


4)点击按钮

-
http://www.markrae.net


这是一个更具体的问题。我搜索谷歌并没有这样做的方式

这样做。

我在我的应用程序使用的主题样式中有以下内容:

a:LINK {font-family:Verdana,Arial,Helvetica,sans-serif; font-size:

12px;颜色:#003399}


a:ACTIVE {


font-family:Verdana,Arial,Helvetica,sans-serif;


字体大小:12px;


颜色:#0033FF;


}


a:HOVER {


font-family:Verdana,Arial,Helvetica,sans-serif;


font-size :12px;


颜色:#0033FF;


}


a:VISITED {


font-family:Verdana,Arial,Helvetica,sans-serif;


字体大小:12px;


颜色:#666666;


}


但是我不想让它适用于我的< asp:菜单控件在主人

页面。


我试图在菜单定义中设置不同的属性,例如


DynamicHoverStyle -ForeColor =" white"


但上面没有效果。有人能告诉我怎么做这个吗?


谢谢


S


"史密斯" < Sm *** @ pricateemail.com写信息

news:et ************** @ TK2MSFTNGP05.phx.gbl ...


但是我不希望这个应用到我的< asp:菜单控件中的主页

页面。


我试图在菜单定义中设置不同的属性,例如


DynamicHoverStyle-ForeColor =" white"


但以上没有效果。有人能告诉我如何实现这个目标吗?



我通过使用单独的样式来做到这一点...


1)为菜单创建一个单独的样式:


..MenuHoverStyle

{

颜色:白色;

}


2)参考它


< asp:菜单ID =" mnuMenu" runat =" server"

StaticHoverStyle-CssClass =" MenuHoverStyle"

DynamicHoverStyle-CssClass =" MenuHoverStyle">

-
http://www.markrae.net



Hello,
Does someone know a link to an example of customization of an asp:menu?

Many thansk in advance.
S

解决方案

"Smith" <Sm***@pricateemail.comwrote in message
news:Og**************@TK2MSFTNGP05.phx.gbl...

Does someone know a link to an example of customization of an asp:menu?


1) Launch your Internet browser (e.g. IE, FireFox, Opera, Netscape etc)

2) Navigate to http://www.google.com

3) Enter the following text in the box:

<asp:Menu

4) Hit the button
--
http://www.markrae.net


Here is a more specific question. I searched google and did not fidn a way
to do this.
I have the folowing in the stylesheat of the theme i use for my application:
a:LINK { font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
12px; color: #003399}

a:ACTIVE {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 12px;

color: #0033FF;

}

a:HOVER {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 12px;

color: #0033FF;

}

a:VISITED {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 12px;

color: #666666;

}

But i do not want this to applly to my <asp:menu control in the master
page.

I tried to set the different properties in the menu definition e.g.

DynamicHoverStyle-ForeColor="white"

but the above has not effect. Can someone tell me how to achive this?

Thanks

S


"Smith" <Sm***@pricateemail.comwrote in message
news:et**************@TK2MSFTNGP05.phx.gbl...

But i do not want this to applly to my <asp:menu control in the master
page.

I tried to set the different properties in the menu definition e.g.

DynamicHoverStyle-ForeColor="white"

but the above has not effect. Can someone tell me how to achive this?

I do that by using separate styles...

1) Create a separate style just for the menu:

..MenuHoverStyle
{
color:white;
}

2) Reference it

<asp:Menu ID="mnuMenu" runat="server"
StaticHoverStyle-CssClass="MenuHoverStyle"
DynamicHoverStyle-CssClass="MenuHoverStyle">
--
http://www.markrae.net


这篇关于使用&lt; asp:menu ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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