What is the difference between screenX/Y, clientX/Y and pageX/Y?

問題:

What is the difference between screenX / Y , clientX / Y and pageX / Y ? screenX / YclientX / YpageX / Y之間有什麼區別?

Also for iPad Safari, are the calculations similar as on desktop—OR there is some difference because of viewport?同樣對於 iPad Safari,計算是否與在桌面上相似——或者由於視口而存在一些差異?

It would be great if you could point me to an example.如果你能給我舉個例子,那就太好了。


解決方案:

參考一: https://en.stackoom.com/question/PTzl
參考二: https://stackoom.com/question/PTzl
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章