10 2020 档案
摘要:IntersectionObserver (交叉观察器) IntersectionObserver提供了一种异步观察目标元素与其祖先元素或顶级文档视窗(viewport)交叉状态的方法。祖先元素与视窗(viewport)被称为根(root)。 IntersectionObserver对象被创建以后,
阅读全文
摘要:1.is的作用 解决html模板限制 //正常结构 <ul> <li >home</li> <li >current</li> </ul> //此时component组件中是li ,但是在语法上component 不算是真实的dom,可能会导致html模板报错 所以这里需要用到is <ul> <co
阅读全文
摘要:线性渐变 linear-gradient(direction, color-stop1, color-stop2, ...); 带兼容写法 这两个是效果一样的 background: linear-gradient(to bottom, #51098A 0%, #ffffff 100%); back
阅读全文

浙公网安备 33010602011771号