5-2请老师过目
来源:5-2 编程练习
qq_鸭绿桥第一帅哥_0
2019-02-09 19:40:14
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>习题</title> <style> div { width: 300px; height: 300px; border: 1px solid red; text-align: center; line-height: 300px; } </style> </head> <body> <div></div> <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script> <script> //此处写代码 $('div').mousemove(function(event){ $(this).text('pageX:'+event.pageX+',pageY'+event.pageY); }) </script> </body> </html>
1回答
你好,实现效果没有问题,继续加油!
祝学习愉快!
相似问题