問題:
What is the difference between screenX
/ Y
, clientX
/ Y
and pageX
/ Y
? screenX
/ Y
、 clientX
/ Y
和pageX
/ 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