Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

この記事は技術レビューを必要としています。ぜひご協力ください

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!

pointer is a CSS media feature that can be used to check whether the primary input mechanism is a pointing device, and if so, how accurate it is.

Enumerated values

Value Meaning
none The primary input mechanism of the device does not include a pointing device.
coarse The primary input mechanism of the device includes a pointing device of limited accuracy.
fine The primary input mechanism of the device includes an accurate pointing device.

Example

<!-- CSS media query within a stylesheet -->
<style>
@media (pointer: coarse) {
  input[type="checkbox"], 
  input[type="radio"] {
        min-width:30px;
        min-height:40px;
        background:transparent;
  }
}
</style>

 

Specifications

Specification Status Comment
Media Queries Level 4
The definition of 'pointer' in that specification.
Working Draft Added in Media Queries Level 4

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 38 No support[2] Nightly build ? 9.1 [1]
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? No support[2] ? ? 9.3

[1]: Implemented in WebKit bug #134822.

[2]: bug 1035774 – Implement Interaction Media Features

ドキュメントのタグと貢献者

 このページの貢献者: cvrebert, Kimball31, Sebastianz, kscarfone, RufusCSharma
 最終更新者: cvrebert,