黄子涵

摘要: 问题 如题所示 答案 相关源码: .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) 编辑
摘要: 问题 如题所示 答案 相关源码: export function getTimeInterval(startDate, endDate = Date.now()) { if (arguments.length 0) { return null } let startTime; let endTime 阅读全文
posted @ 2022-07-09 08:39 黄子涵 阅读(171) 评论(0) 推荐(0) 编辑