[英]How can I detect if the color of a button changes because CSS or JavaScript event when I put mouse on button?
How can I detect if color of bottom change because CSS or JavaScript event when I put mouse on button?当我将鼠标放在按钮上时,如何检测底部颜色是否因 CSS 或 JavaScript 事件而改变?
My solution that not good enough:我的解决方案不够好:
Problems in my solution:我的解决方案中的问题:
Can't detect which event happen before CSS or JavaScript无法检测在 CSS 或 JavaScript 之前发生的事件
Not Auto check不自动检查
Please give better solution if you have.如果有,请提供更好的解决方案。 (I working with jQuery) (我使用 jQuery)
You can check with Firebug which events are fired in JavaScript.您可以使用 Firebug 检查 JavaScript 中触发了哪些事件。 Go to the Console and click "Profile".转到控制台并单击“配置文件”。 Then move your mouse over the button and you will see the JavaScript event show up.然后将鼠标移到按钮上,您将看到 JavaScript 事件出现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.