摘要: 在移动端开发中,在banner轮播图未加载出来之前,banner层是不占文档流高度的,当从服务器获取完banner数据,展示的时候,banner层因为有了内容 所以会撑开,导致banner层下面的内容也随之移动,为解决此bug,可以控制下banner层的宽高比 阅读全文
posted @ 2018-11-21 11:55 雅士伊人 阅读(293) 评论(0) 推荐(0) 编辑
摘要: series: [ { name: '值', type: 'bar', stack: '总量', //设置柱状图大小 barWidth : 20, //设置柱状图渐变颜色 itemStyle: { normal: { color: new echarts.graphic.LinearGradient 阅读全文
posted @ 2018-11-21 11:12 雅士伊人 阅读(11686) 评论(0) 推荐(0) 编辑
摘要: 隐藏网格线: 阅读全文
posted @ 2018-11-21 11:03 雅士伊人 阅读(39507) 评论(0) 推荐(2) 编辑
摘要: xAxis: { data: anameArr, axisLabel: { show: true, textStyle: { color: '#c3dbff', //更改坐标轴文字颜色 fontSize : 14 //更改坐标轴文字大小 } }, axisTick... 阅读全文
posted @ 2018-11-21 10:31 雅士伊人 阅读(42883) 评论(0) 推荐(3) 编辑
摘要: xAxis : [ { type : 'category', data : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'], //设置轴线的属性 ... 阅读全文
posted @ 2018-11-21 10:21 雅士伊人 阅读(6310) 评论(0) 推荐(0) 编辑
摘要: 1、安装nodemon 2、修改package.json配置 3、命令行中输入npm run dev 阅读全文
posted @ 2018-11-17 18:26 雅士伊人 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: swiper做项目时,需求 带着左右两边的箭头, 场景1:swiper自动切换,此时左右箭头点击时不能切换 场景2:swiper手动切换,左右箭头可以实现切换,通过翻阅api 终于找到 官网地址:https://www.swiper.com.cn/api/swiping/64.html 阅读全文
posted @ 2018-11-16 15:04 雅士伊人 阅读(3266) 评论(0) 推荐(0) 编辑
摘要: 禁止用户滑动,只需要在最外层添加class “swiper-no-swiping” 阅读全文
posted @ 2018-11-16 14:59 雅士伊人 阅读(15064) 评论(0) 推荐(0) 编辑
摘要: 知识点: viewport:可视窗口,也就是浏览器。vw Viewport宽度, 1vw 等于viewport宽度的1%vh Viewport高度, 1vh 等于viewport高的的1% calc()使用通用的数学运算规则,但是也提供更智能的功能: 1、使用“+”、“-”、“*” 和 “/”四则运 阅读全文
posted @ 2018-11-15 11:15 雅士伊人 阅读(3118) 评论(0) 推荐(0) 编辑
摘要: 项目开发中遇到了这样的效果,百度了一波,可以使用css3的伪类实现: 阅读全文
posted @ 2018-11-15 10:47 雅士伊人 阅读(4806) 评论(0) 推荐(0) 编辑