1
0
mirror of https://gitee.com/bitdance-team/chrome-extension synced 2025-01-10 21:58:14 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

类名bug

This commit is contained in:
xiao_io 2022-02-09 20:04:26 +08:00
parent 6d6ccc6f34
commit b2122d774c

View File

@ -30,7 +30,7 @@ $(function() {
// 走起(初始化) // 走起(初始化)
function walk() { function walk() {
// 灵魂 css // 灵魂 css
css(".heart{width: 10px;height: 10px;position: fixed;background: pink;transform: rotate(45deg);}.heart::after,.heart::before{position: absolute;content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;}.heart::after{top: -5px;}.heart::before{left: -5px;}"); css("#heart{width: 10px;height: 10px;position: fixed;background: pink;transform: rotate(45deg);}#heart::after,#heart::before{position: absolute;content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;}#heart::after{top: -5px;}#heart::before{left: -5px;}");
attachEvent(); attachEvent();
gameloop(); gameloop();
} }
@ -62,7 +62,7 @@ $(function() {
function createHeart(event) { function createHeart(event) {
// 创建一个 div 并指定类名为 heart // 创建一个 div 并指定类名为 heart
var d = document.createElement("div"); var d = document.createElement("div");
d.className = "heart"; d.id = "heart";
/** /**
* @param el: 每个 div 的标识 * @param el: 每个 div 的标识
* @param x,y: 当前鼠标位置信息 * @param x,y: 当前鼠标位置信息