C# winform webbrowser中修改样式的问题?????????
yzty 2011-11-08 09:30:10 可以修改he.style, 如何使其本来的样式不变呢?也就是本来input的宽度很宽,结果一运行此程序,宽度就变小了?如何解决?
foreach (HtmlElement he in wb.Document.GetElementsByTagName("input"))
{
if (he != null)
{
switch (he.GetAttribute("type").ToLower())
{
case "text":
he.Style += @"background: #ffffcc url(/images/operate_enable_ie.png) no-repeat right;";
break;
}
}
}