上一页 1 ··· 12 13 14 15 16
摘要: npx 指令会先在项目的node_modules里面找资源包 npm info 包名称 [查看资源包的信息] 阅读全文
posted @ 2020-02-04 12:07 ladybug7 阅读(143) 评论(0) 推荐(0) 编辑
摘要: { "name": "webpack-demo", "version": "1.0.0", "description": "learning webpack", "private": true, > 表示项目是私有的,不会发布到npm的线上仓库 "main": "index.js", > 向外暴露的 阅读全文
posted @ 2020-02-04 11:52 ladybug7 阅读(1671) 评论(0) 推荐(0) 编辑
摘要: .ellipsis{ overflow: hidden white-space: nowrap text-overflow: ellipsis } 注意当添加了ellipsis样式的元素没有显示省略号样式时,可以给元素或者其父元素添加一个min-width: 0 阅读全文
posted @ 2020-02-04 07:46 ladybug7 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 在.eslintrc.js中配置: // add your custom rules here rules: { // no space before function name "space-before-function-paren": 0 } 阅读全文
posted @ 2020-02-04 07:43 ladybug7 阅读(3218) 评论(0) 推荐(1) 编辑
摘要: .father { width: 100% } .child { width: 100%; height: 0; padding-bottom: 20%; background: green; overflow: hidden; } <body> <div class="father"> <div 阅读全文
posted @ 2020-02-03 14:11 ladybug7 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 第一步:搜索icon font,进入 https://www.iconfont.cn 第二步: 注册账户 第三步: 创建一个项目 1.点击图标管理->我的项目 2.新建项目 第四步:下载选择好的图标 第五步:添加相应文件,并修改引用路径 第六步:使用字体图标 阅读全文
posted @ 2020-02-02 10:58 ladybug7 阅读(298) 评论(0) 推荐(0) 编辑
摘要: vue-cli[2.x]中: 安装 npm install fastclick --save 使用: 在main.js中 :先 import fastClick from 'fastclick' 然后 fastClick.attach(document.body) import Vue from ' 阅读全文
posted @ 2020-02-02 10:35 ladybug7 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 新建一个border.css的文件,然后将代码复制粘贴,然后引用border.css样式文件,然后给需要添加边框的元素,加相应的类样式。 tips: border-bottom[一像素下边框];border-topbottom[上下分别添加一像素边框] @charset "utf-8"; .bord 阅读全文
posted @ 2020-02-02 10:19 ladybug7 阅读(399) 评论(0) 推荐(0) 编辑
摘要: <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> 阅读全文
posted @ 2020-02-02 09:42 ladybug7 阅读(708) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16