03 2018 档案

清除浮动
摘要:.clearfix display: inline-block &:after display: block content: "." height: 0 line-height: 0 clear: both visibility: hidden 参考http://www.daqianduan.co 阅读全文

posted @ 2018-03-30 15:32 tarrying 阅读(96) 评论(0) 推荐(0)

使用图片做背景使用滤镜做模糊处理
摘要:首先在整块区域(.head)下设置position: relatvie;backgroud:rgba(7,17,27,0.498039);这里这是background是为在图片上设置一个背景颜色 然后在专门放背景图片的块区设置样式 .background position: absolute top 阅读全文

posted @ 2018-03-30 14:11 tarrying 阅读(309) 评论(0) 推荐(0)

vue-router配置
摘要:vue自动生成了路由选中的class,比如 我们想给router-link-active这个class换个名称:active let router = new VueRouter( {linkActiveClass: 'active', routes: routes} ); 这样写即可 参考api: 阅读全文

posted @ 2018-03-29 15:47 tarrying 阅读(124) 评论(0) 推荐(0)

vue-router 设置默认路由
摘要:加入 {path: '/', redirect: 'ratings'},vue 1.0版本版本使用go,但是在2.0中是用router.go(‘/ratings’);会一直刷新 阅读全文

posted @ 2018-03-29 15:26 tarrying 阅读(13489) 评论(0) 推荐(0)

vue <router-view>没有渲染
摘要:将routes中的components换成component 阅读全文

posted @ 2018-03-29 15:14 tarrying 阅读(369) 评论(0) 推荐(0)