Rumah  >  Artikel  >  hujung hadapan web  >  Javascript 判断客户端浏览器类型代码_javascript技巧

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

WBOY
WBOYasal
2016-05-16 18:33:351156semak imbas
复制代码 代码如下:



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("
")
Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn