zoukankan      html  css  js  c++  java
  • 如何检查浏览器版本以及支持性

    在任意窗体的.cs文件中输入以下代码即可
                HttpBrowserCapabilities bc = Request.Browser;
                Response.Write("<p>Browser Capabilities:</p>");
                Response.Write("Type = " + bc.Type + "<br>");
                Response.Write("Name = " + bc.Browser + "<br>");
                Response.Write("Version = " + bc.Version + "<br>");
                Response.Write("Major Version = " + bc.MajorVersion + "<br>");
                Response.Write("Minor Version = " + bc.MinorVersion + "<br>");
                Response.Write("Platform = " + bc.Platform + "<br>");
                Response.Write("Is Beta = " + bc.Beta + "<br>");
                Response.Write("Is Crawler = " + bc.Crawler + "<br>");
                Response.Write("Is AOL = " + bc.AOL + "<br>");
                Response.Write("Is Win16 = " + bc.Win16 + "<br>");
                Response.Write("Is Win32 = " + bc.Win32 + "<br>");
                Response.Write("Supports Frames = " + bc.Frames + "<br>");
                Response.Write("Supports Tables = " + bc.Tables + "<br>");
                Response.Write("Supports Cookies = " + bc.Cookies + "<br>");
                Response.Write("Supports VB Script = " + bc.VBScript + "<br>");
                Response.Write("Supports JavaScript = " + bc.JavaScript + "<br>");
                Response.Write("Supports Java Applets = " + bc.JavaApplets + "<br>");
                Response.Write("Supports ActiveX Controls = " + bc.ActiveXControls + "<br>");
                Response.Write("CDF = " + bc.CDF + "<br>");

  • 相关阅读:
    day06 字典、元组、set的方法及常用操作
    python makestrans translate
    python 中locals() 和 globals()
    threading.local()
    进程 线程 协程
    微信机器人
    flask
    python is ==
    Beautiful Soup 4.4.0 基本使用方法
    12306
  • 原文地址:https://www.cnblogs.com/wbpmrck/p/1776330.html
Copyright © 2011-2022 走看看