رمز الاختبار
http://jsbin.com/dipijeqi/11
تأثير:
الكروم
نسخة الكود كما يلي:
window.devicepixelratio: 2 (دقيق)
screen.devicexdpi / screen.logicalxdpi: nan
window.outerwidth / window.innerwidth: 2
document.documentElement.OffSetheight
window.top.outerwidth / window.top.innerwidth: 2
وما يليها
نسخة الكود كما يلي:
window.devicepixelratio: 1.5 (دقيق)
screen.devicexdpi / screen.logicalxdpi: nan
Window.outerwidth / window.innerwidth: 1.01145833333333333333333
document.documentElement.OffSetheight / window.innerheight: 0.023391812865497075 (مع الارتباط)
window.top.outerwidth / window.top.innerwidth: 1.01145833333333333333333
أي 8
نسخة الكود كما يلي:
window.devicepixelratio: غير محدد
screen.devicexdpi / screen.logicalxdpi: 1.541666666666667 (حول دقة)
window.outerwidth / window.innerwidth: nan
document.documentElement.offsetheight / window.innerheight: nan
window.top.outerwidth / window.top.innerwidth: nan
IE11
نسخة الكود كما يلي:
window.devicepixelratio: 1.5 (دقيق)
screen.devicexdpi / screen.logicalxdpi: 1.5
window.outerwidth / window.innerwidth: 1.0084033613445377
document.documentElement.OffSetheight / window.innerheight: 0.02203856749311295 (مع الارتباط)
window.top.outerwidth / window.top.innerwidth: 1.0084033613445377
IE10
نسخة الكود كما يلي:
window.devicepixelratio: غير محدد
screen.devicexdpi / screen.logicalxdpi: 1.5 (دقيق)
window.outerwidth / window.innerwidth: 1.0084033613445377
document.documentElement.OffSetheight / window.innerheight: 1
window.top.outerwidth / window.top.innerwidth: 1.0084033613445377
IE9
نسخة الكود كما يلي:
window.devicepixelratio: غير محدد
screen.devicexdpi / screen.logicalxdpi: 1.5 (دقيق)
window.outerwidth / window.innerwidth: 1.0084033613445377
document.documentElement.OffSetheight / window.innerheight: 1
window.top.outerwidth / window.top.innerwidth: 1.0084033613445377
360 6.3 (لا استجابة على الإطلاق)
نسخة الكود كما يلي:
window.devicepixelratio: غير محدد
screen.devicexdpi / screen.logicalxdpi: 1
window.outerwidth / window.innerwidth: nan
document.documentElement.offsetheight / window.innerheight: nan
window.top.outerwidth / window.top.innerwidth: nan
360 متصفح السرعة
نسخة الكود كما يلي:
window.devicepixelratio: 1
screen.devicexdpi / screen.logicalxdpi: nan
window.outerwidth / window.innerwidth: 1.5
document.documentElement.OffSetheight / window.innerheight: 0.01526717572519083
window.top.outerwidth / window.top.innerwidth: 1.5 (دقيق)
متصفح سوجو عالي السرعة (لا يوجد استجابة على الإطلاق)
نسخة الكود كما يلي:
window.devicepixelratio: غير محدد
screen.devicexdpi / screen.logicalxdpi: 1
window.outerwidth / window.innerwidth: nan
document.documentElement.offsetheight / window.innerheight: nan
window.top.outerwidth / window.top.innerwidth: nan
متصفح توباو
نسخة الكود كما يلي:
window.devicepixelratio: 1
screen.devicexdpi / screen.logicalxdpi: nan
window.outerwidth / window.innerwidth: 2.0710059171597632 (دقيقة تقريبًا)
document.documentElement.OffSetheight / Window.innerheight: 0.022988505747126436
window.top.outerwidth / window.top.innerwidth: 2.0710059171597632