解决IE8,ReportViewer没有横向滚动条的问题

if (!IsPostBack)
{
  string userAgent = Request.ServerVariables.Get("HTTP_USER_AGENT");
  if (userAgent.Contains("MSIE 7.0") || userAgent.Contains("MSIE 8.0"))
     ReportViewerYingCangDanJuDaYin.Attributes.Add("style", "margin-bottom: 30px;");
}

你可能感兴趣的:(String,IE,user)