Maison  >  Article  >  interface Web  >  Javascript 判断客户端浏览器类型代码_javascript技巧

Javascript 判断客户端浏览器类型代码_javascript技巧

WBOY
WBOYoriginal
2016-05-16 18:33:351144parcourir
复制代码 代码如下:



JavaScript 获取 客户端信息
复制代码 代码如下:

document.write("Screen resolution: ")
document.write(screen.width + "*" + screen.height)
document.write("
")
document.write("Available view area: ")
document.write(screen.availWidth + "*" + screen.availHeight)
document.write("
")
document.write("Color depth: ")
document.write(screen.colorDepth)
document.write("
")
document.write("Buffer depth: ")
document.write(screen.bufferDepth)
document.write("
")
document.write("DeviceXDPI: ")
document.write(screen.deviceXDPI)
document.write("
")
document.write("DeviceYDPI: ")
document.write(screen.deviceYDPI)
document.write("
")
document.write("LogicalXDPI: ")
document.write(screen.logicalXDPI)
document.write("
")
document.write("LogicalYDPI: ")
document.write(screen.logicalYDPI)
document.write("
")
document.write("FontSmoothingEnabled: ")
document.write(screen.fontSmoothingEnabled)
document.write("
")
document.write("PixelDepth: ")
document.write(screen.pixelDepth)
document.write("
")
document.write("UpdateInterval: ")
document.write(screen.updateInterval)
document.write("
")
Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn