Home > Article > Web Front-end > 5 types of coordinates of js Event objects_javascript skills
But you know, the browser is too disharmonious. Not to mention compatibility, the various coordinate attributes are dizzying and easy to confuse. Well, let me summarize:
Test browsers: IE8, Chrome13, FF8, Safari5, Opera11
First, let’s take a look at the test cases (test with HTML5 doctype, you can also see the future development trend, Other doctypes can be tested by yourself):