关于HTMLElement中的setAttribute(string, string)属性值为整数的问题
HTMLElement中的setAttribute(string, string)函数可以为某一个标签赋属性值,比如
int width=1080, height=1920;
HtmlElement bd = this.webBrowser1.Document.GetElementsByTagName("BODY")[0];
bd.Style = "FONT-SIZE: 32px";
bd.SetAttribute("width", width.ToString());
bd.SetAttribute("height", height.ToString());