Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我的学习日志(二) #3

Open
2 tasks done
xxxgitone opened this issue May 29, 2017 · 0 comments
Open
2 tasks done

我的学习日志(二) #3

xxxgitone opened this issue May 29, 2017 · 0 comments

Comments

@xxxgitone
Copy link
Owner

xxxgitone commented May 29, 2017

放完端午假,就是为期三天的期末考试了,意味着暑假还有四天就要来临了,真久,将近三个月 💥

一大推的实验报告要写,好多内容要复习,所以学习的新知识并不多。

今日完成任务

  • 一个半小时的英语学习
  • vnpastime项目,视频播放器控制栏样式的编写

知识点

e.offsetX和e.offsetY

这两个事件对象鼠标相对于事件源元素的X,Y坐标,IE独有,标准事件没有,不过chrome支持,Firefox不支持

比如有一个div元素,宽高各200px,给它绑定一个点击事件,鼠标在这个div内点击,那么div就是事件源,相对应的e.offsetX和e.offsetY就是离这个div左顶点的距离

每次遇到这些坐标位置以及什么窗口宽度之类的长度都会搞混,看样子有必要写个博文加深一下影响了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant