La propriété Window.screenX
retourne la distance honrizontale, in CSS pixels, of the left border of the user's browser from the left side of the screen.
Syntax
lLoc = window.screenX
lLoc
is the number of CSS pixels from the left side the screen.
Specifications
Specification | Status | Commentaire |
---|---|---|
CSS Object Model (CSSOM) View Module La définition de 'Window.screenX' dans cette spécification. |
Version de travail | Définition initiale |
Compatibilité avec les navigateurs
Nous convertissons les données de compatibilité dans un format JSON.
Ce tableau de compatibilité utilise encore l'ancien format
car nous n'avons pas encore converti les données qu'il contient.
Vous pouvez nous aider en contribuant !
Fonctionnalitée | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Support basic | (Oui) | (Oui) [1] | (Oui) | (Oui) | (Oui) |
Fonctionnalitée | Android | Chrome pour Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Support basic | (Oui) | (Oui) | (Oui) [1] | (Oui) | (Oui) | (Oui) |
[1] Avant Firefox 28, Gecko utilisait les dimensions de l'appareil au lieu des pixels CSS ; dans d'autres mots, it was assuming a value of screenPixelsPerCSSPixel
of 1 for any device.