摘要:
document.getElementById("p").innerHTML 相当于 this.$refs.pp.innerHTML this.ref 获取指定的元素 // 使用 ref 函数来声明对象类型的数据源:具备响应式 let emp = ref({ salary: 7000, name: 阅读全文
摘要:
.gitignore只能忽略那些没有被trach的文件,被trach的文件添加到忽略不会生效 解决方案: git rm -r --cached . git add . git commit -m "update .gitignore" 阅读全文
摘要:
//li元素没有获得hover的样式设置 .gallery:hover li:not(:hover){ -webkit-filter: blur(2px) grayscale(1); -moz-filter: blur(2px) grayscale(1); -o-filter: blur(2px) 阅读全文
摘要:
box-shadow为元素快阴影,text-shadow为文本阴影,两个属性参数与用法都一致,下面以box-shadow为例 基本语法是{box-shadow:[inset] x-offset y-offset blur-radius spread-radius color} insert:为内阴影 阅读全文
摘要:
avaScript 中的以下代码 :Window.onload = function (){// 代码 } 等价于 Jquery 代码如下:$(window).load(function (){// 代码 }); 执行时机window.load——必须等待网页中所有的内容加载完毕后 ( 包括图片 ) 阅读全文