2017-01-06 1 views
0

글꼴 두께를 프로그래밍 방식으로 <figcaption>에 굵게 표시하려면 어떻게해야합니까? 이것은 내가 시도프로그래밍 방식으로 figcaption에 글꼴 두께 추가

는 : .Attributes.Add("font-weight", "bold") 그냥 <figcaption font_weight="bold">...을 만듭니다로

HtmlGenericControl figCap = new HtmlGenericControl("figcaption"); 
figCap.Attributes.Add("font-weight", "bold"); 

답변

0

당신은 .Style.Add("font-weight", "bold")이 필요합니다.

관련 문제