摘要: @for $i from 1 through 5 { li { &:nth-child(#{$i}) { .bgImg { background-image: url(../images/index/index-icon#{$i}.png); } } } } 阅读全文
posted @ 2019-07-03 15:37 lucy123 阅读(147) 评论(0) 推荐(0) 编辑
摘要: v-html修改富文本样式:1.<style lang="scss" scoped> //如果把scoped去掉,直接写样式是可以,但这样会很危险,也不提议2.#id >>> p {font-size: 14px;}//可能会有些浏览忽略>>>编译不了可以用/deep/代替,一样有效果#id /de 阅读全文
posted @ 2019-07-03 15:35 lucy123 阅读(130) 评论(0) 推荐(0) 编辑
摘要: JavaScript Array includes() 方法let site = ['runoob', 'google', 'taobao'];site.includes('runoob'); // true site.includes('baidu'); // falseincludes() 方法 阅读全文
posted @ 2019-07-03 15:34 lucy123 阅读(107) 评论(0) 推荐(0) 编辑