Exemplo n.º 1
0
 /// <summary>
 /// 添加 css 类名。
 /// </summary>
 /// <param name="htmlHelper"></param>
 /// <param name="className"></param>
 /// <returns></returns>
 public static ExtendHtmlString AddCssClass(this ExtendHtmlString htmlHelper, string className)
 {
     htmlHelper.Builder.AddCssClass(className);
     return(htmlHelper);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 添加样式。
 /// </summary>
 /// <param name="htmlHelper"></param>
 /// <param name="style"></param>
 /// <returns></returns>
 public static ExtendHtmlString Style(this ExtendHtmlString htmlHelper, string style)
 {
     htmlHelper.Builder.MergeAttribute("style", style);
     return(htmlHelper);
 }