黄子涵

上一页 1 2 3 4 5 6 7 ··· 49 下一页
摘要: 问题 如题所示 相关源码: function o() { var t = "function" == typeof e.onclick && e.onclick; e.onclick = function (e) { t && t(), i(e) } } 答案 var t = "function" 阅读全文
posted @ 2022-07-12 08:44 黄子涵 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 答案 相关源码: d.push({ el: a, x: e.clientX - 5, y: e.clientY - 5, scale: 1, alpha: 1, color: s() }), CSS设置Alpha值 alpha: 1这个样式的作用是设置元素的不透明度,样式值为1是就是 阅读全文
posted @ 2022-07-12 08:37 黄子涵 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 相关源码: function s() { return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")" } 答案 这个函数就是 阅读全文
posted @ 2022-07-12 08:22 黄子涵 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 答案 相关源码: function i(e) { var a = t.createElement("div"); a.className = "heart", d.push({ el: a, x: e.clientX - 5, y: e.clientY - 5, scale: 1, 阅读全文
posted @ 2022-07-12 07:29 黄子涵 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 相关源码: function c(e) { var a = t.createElement("style"); a.type = "text/css"; try { a.appendChild(t.createTextNode(e)) } catch (t) { a.styleShe 阅读全文
posted @ 2022-07-12 06:54 黄子涵 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 答案 相关源码: response: () => { let hzhCount = 1 + ~~(Math.random() * 5) return { code: 20000, data: getComment(hzhCount) } } Math.random() 综上所述,Ma 阅读全文
posted @ 2022-07-10 12:09 黄子涵 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 答案 相关源码: .donate_inner:after, .donate_inner:before { content: ""; position: absolute; left: 0; bottom: 45%; margin-left: -8px; border-top: 8px 阅读全文
posted @ 2022-07-10 11:21 黄子涵 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 答案 相关源码: .hzh-friend-item:nth-of-type(3n) { margin-right: 5%; } css中margin属性值百分比的使用 综上所述,margin-right: 5%;这个样式的含义是基于它的父元素的宽度5%来计算右外边距。 阅读全文
posted @ 2022-07-09 10:10 黄子涵 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 答案 相关源码: .hzh-friend-item:nth-of-type(3n) { margin-right: 0; } 详解css3中的:nth-of-type(n) 综上所述,:nth-of-type(3n)这个选择器选择的是同类型的第3n个同级兄弟元素。 你会看到第一行的第 阅读全文
posted @ 2022-07-09 09:40 黄子涵 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 答案 相关源码: export function getTimeInterval(startDate, endDate = Date.now()) { if (arguments.length 0) { return null } let startTime; let endTime 阅读全文
posted @ 2022-07-09 08:44 黄子涵 阅读(100) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 49 下一页