Visit Mozilla.org

DOM:window.screen.colorDepth

出典: MDC



« Gecko DOM リファレンス

目次

[編集] 概要

画面の色深度を返します。

[編集] 構文

bitDepth = window.screen.colorDepth

[編集]

// 画面の色深度をチェックします
if ( window.screen.colorDepth < 8) {
    // 低色版のページを使う
} else {
    // 普通のカラフルなページを使う
}

[編集] 注記

window.screen.pixelDepth も参照してください。

[編集] 仕様

DOM Level 0。どの標準にも属しません。