部分代码如下:
<asp:TreeView ID="TreeView1" runat="server" RootNodeStyle-ImageUrl= "~/pic/root_navigation.png"
NodeStyle-ImageUrl ="~/pic/navigation.png" ShowLines="True" ImageSet="News" NodeIndent="10" >
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" />
<SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px"
VerticalPadding="0px" ForeColor="Red" />
<NodeStyle Font-Names="Arial" Font-Size="10pt" ForeColor="Black" HorizontalPadding="5px"
NodeSpacing="0px" VerticalPadding="0px" ImageUrl="~/pic/navigation.png" />
<Nodes>
<asp:TreeNode SelectAction="Expand" Text="管理系统" Value="管理系统">
<asp:TreeNode SelectAction="Expand" Text="成件管理" Value="成件管理" >
<asp:TreeNode NavigateUrl="~/ProductManagement/ViewProduct.aspx" Text="成件浏览" Value="成件浏览" >
</asp:TreeNode>
<asp:TreeNode NavigateUrl="~/ProductManagement/QueryProduct.aspx" Text="成件查询" Value="成件查询">
</asp:TreeNode>
</asp:TreeNode>
</Nodes>
<RootNodeStyle ImageUrl="~/pic/root_navigation.png" />
</asp:TreeView>
问题::
现在虽然指定了<SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px"
VerticalPadding="0px" ForeColor="Red" />
但是树中的"成件浏览"和"成件查询"节点选中后没有变色.我该怎么办?好象不应该啊~~
谢谢大家能指导下~~
[此贴子已经被作者于2007-7-31 10:55:21编辑过]