首頁  >  文章  >  web前端  >  Javascript 判断客户端浏览器类型代码_javascript技巧

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

WBOY
WBOY原創
2016-05-16 18:33:351155瀏覽
复制代码 代码如下:



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("
")
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn