G
Guest
My simple example is shown below. Please can you explain why the BackColor of
the menu's StaticSelectedStyle and StaticHoverStyle are not applied whilst
the background-color of the tr and td's are applied via the style. Thanks.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
tr{background-color: ButtonFace;}
td{background-color: ButtonFace;}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr style="height: 200px;">
<td style="width: 200px;">
<asp:Menu ID="Menu1" runat="server">
<StaticSelectedStyle BackColor="Blue" />
<StaticHoverStyle BackColor="Red" />
<Items>
<asp:MenuItem Text="One"
Value="One"></asp:MenuItem>
<asp:MenuItem Text="Two"
Value="Two"></asp:MenuItem>
<asp:MenuItem Text="Three"
Value="Three"></asp:MenuItem>
</Items>
</asp:Menu>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
the menu's StaticSelectedStyle and StaticHoverStyle are not applied whilst
the background-color of the tr and td's are applied via the style. Thanks.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
tr{background-color: ButtonFace;}
td{background-color: ButtonFace;}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr style="height: 200px;">
<td style="width: 200px;">
<asp:Menu ID="Menu1" runat="server">
<StaticSelectedStyle BackColor="Blue" />
<StaticHoverStyle BackColor="Red" />
<Items>
<asp:MenuItem Text="One"
Value="One"></asp:MenuItem>
<asp:MenuItem Text="Two"
Value="Two"></asp:MenuItem>
<asp:MenuItem Text="Three"
Value="Three"></asp:MenuItem>
</Items>
</asp:Menu>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>