public class MenuTab: System.Web.UI.WebControls.Menu
{
public override void RenderBeginTag(HtmlTextWriter writer)
{
StringBuilder sb = new StringBuilder("<style type=/"text/css/">");
if (this.Orientation == Orientation.Horizontal)
{
sb.Append(@"
." + this.ClientID + @"1
{
border-style:solid;
border-bottom-width:" + MenuBorderWidth.ToString() + @"px;
border-left-width:0px;
border-right-width:0px;
border-top-width:0px;
}
." + this.ClientID + @"2
{
border-style:solid;
border-botto
巧用自定义Menu控件实现Tab效果
最新推荐文章于 2025-01-16 10:49:49 发布