一个TreeView 样式表

 转自zhuhailangke的百度空间,感谢原作者给与帮助!

  
  
  
  
  1. .TreeView  
  2.     border-bottom:1px dotted #B2B2B2 !important; 
  3. .TreeView div 
  4.     margin-left:5px; 
  5. .TreeView table 
  6.     border-top:1px dotted #B2B2B2 !important; 
  7. .TreeView div table 
  8.     border-bottom:none !important; 
  9.     border-top:none !important; 
  10. .TreeView table td 
  11.     padding:2px 0; 
  12. .LeafNodesStyle  
  13.      
  14.  
  15. .RootNodeStyle  
  16.      
  17. /* ALL ELEMENTS */ 
  18. .NodeStyle  
  19. .ParentNodeStyle  
  20.     background:gray; 
  21. a.SelectedNodeStyle  
  22.     background:#E5E5E5; 
  23.     display:block; 
  24.     padding:2px 0 2px 3px; 
  25. <div id="content-side1-three-column"
  26.             <h2> 
  27.                 <a href="/Items.aspx">All Items</a></h2> 
  28.             <asp:TreeView ID="TreeViewCategories" runat="server" ShowLines="True" ExpandDepth="2" 
  29.                 LineImagesFolder="~/TreeLineImages" NodeIndent="0" LeafNodeStyle-CssClass="LeafNodesStyle" 
  30.                 CssClass="TreeView" NodeStyle-CssClass="NodeStyle" ParentNodeStyle-CssClass="ParentNodeStyle" 
  31.                 RootNodeStyle-CssClass="RootNodeStyle" SelectedNodeStyle-CssClass="SelectedNodeStyle" 
  32.                 LeafNodeStyle-Width="100%" NodeStyle-Width="100%" ParentNodeStyle-Width="100%" 
  33.                 RootNodeStyle-Width="100%" SelectedNodeStyle-Width="100%"
  34.                 <Nodes> 
  35.                     <asp:TreeNode Text="All Items" SelectAction="Expand" PopulateOnDemand="True" /> 
  36.                     <asp:TreeNode Text="CA12" Value="�C12" 
  37.                       SelectAction="None"
  38.                       <asp:TreeNode Text="ZA12 " Value="ZA12" NavigateUrl="0.aspx" Target="active"
  39.                       </asp:TreeNode> 
  40.              
  41.             </asp:TreeNode>  
  42.                 </Nodes> 
  43.                 <%--<HoverNodeStyle ForeColor="RoyalBlue" />--%> 
  44.                 <SelectedNodeStyle BackColor="Transparent" CssClass="SelectedNodeStyle" Width="100%" /> 
  45.                 <RootNodeStyle Font-Bold="True" Font-Size="Larger" HorizontalPadding="5px" CssClass="RootNodeStyle" 
  46.                     Width="100%" /> 
  47.                 <ParentNodeStyle CssClass="ParentNodeStyle" Width="100%" /> 
  48.                 <LeafNodeStyle CssClass="LeafNodesStyle" Width="100%" /> 
  49.                 <NodeStyle CssClass="NodeStyle" Width="100%" /> 
  50.             </asp:TreeView> 
  51.         </div> 

 

你可能感兴趣的:(css,css,treeview,树css)