黄子涵

摘要: 问题 如题所示 答案 css3 unset属性 CSS 中的 initial、inherit、unset、revert、all 相关源码: <div class="hzh-back-top" v-show="hzhShow" @click.stop="hzhGetTop"> <img class=" 阅读全文
posted @ 2022-07-05 20:38 黄子涵 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 background-position: center center; background-repeat: no-repeat; background-attachment: fixed; background-size: cover; 答案 CSS 背景位置 background 阅读全文
posted @ 2022-07-05 20:15 黄子涵 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 答案 相关源码: .footer-main .footer-item:nth-child(3){ flex: 2; } css选择器:nth-child()的用法 这里的: .footer-item:nth-child(3) 控制的是.footer-item元素的第三个直接子元素。 阅读全文
posted @ 2022-07-05 16:18 黄子涵 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 答案 相关源码: created(){ this.getSocial(); this.$store.dispatch('initComputeTime'); } vue dispatch用法_Vuex基本用法 Vue进阶(二十四):vuex 之 commit 和dispatch 这里 阅读全文
posted @ 2022-07-05 16:07 黄子涵 阅读(1527) 评论(0) 推荐(0) 编辑
摘要: 问题 如题所示 答案 相关源码如下: initComputeTime: ({commit}) => { commit('GET_RUNTIME_INTERVAL'); }, vuex直接修改state 与 用commit提交mutation来修改state的差异 这里commit函数的作用是提交到m 阅读全文
posted @ 2022-07-05 15:50 黄子涵 阅读(697) 评论(0) 推荐(0) 编辑