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;
巧用自定义Menu控件实现Tab效果
最新推荐文章于 2022-08-25 15:20:37 发布