- 博客(10)
- 收藏
- 关注
原创 flex布局,justify-content,最后一行排列异常,解决方法
.personList { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 0 10px;}.personList:after { content: ''; width: 30%; border: 1px solid transparent;}
2021-05-13 15:04:48
550
原创 手机通过IP访问电脑端开发的angular项目
node_modules/@angular/cli/lib/config/schema.json serve.properties.host.default=localhost 改为 .default=ip地址172.x.x.x运行http://172.x.x.x:4200/
2021-03-17 18:03:15
204
原创 设置html的font-size,手机端css使用rem
(function (doc, win) { var docEl = doc.documentElement, isIOS = navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), dpr = isIOS ? Math.min(win.devicePixelRatio, 3) : 1, dpr = window.top =.
2021-03-12 16:18:02
193
原创 文字只显示一行+... 两行+...
.ellipsis { white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}.ellipsis2 { text-overflow: -o-ellipsis-lastline; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -web...
2021-03-12 10:18:57
160
原创 h5页面唤起手机拨号、短信功能
<meta name="format-detection" content="telephone=yes"> //在head 里面添加meta标签 <a href="tel:{{mobilephone}}">{{mobilephone}}</a><a href="tel:11111">点击拨打电话:11111</a>
2021-03-10 17:12:12
289
转载 uc浏览器、QQ浏览器的h5页面,点击分享按钮,分享到微信、qq、微博
github项目地址:https://github.com/JefferyWang/nativeShare.js使用方法//引入CSS<link rel="stylesheet" href="nativeShare.css"/>//在需要放分享的地方插入以下代码<div id="nativeShare"></div>//添加配置,并...
2019-12-06 11:20:13
2701
原创 Git的使用,命令行总结
下载git命令行查看git命令行:git helpgit配置:git config --global user.name '名字'git config --global user.email '邮箱地址'git config --global color.ui true //让git输出带颜色查看git配置:git config --list清除git配...
2019-10-15 15:33:53
186
原创 angular引用第三方组件库,改变组件样式css :host ::ng-deep
:host ::ng-deep .className{ 新的样式......}//举例:host ::ng-deep .ant-radio-button-wrapper { width: 20% !important; padding-left: 9% !important;}:host 表示选择器,选择当前的组件。::ng-deep 可以忽略中间classNam...
2019-10-12 13:05:44
999
原创 浏览器url拼接参数,报错URI malformed
是因为浏览器不能解码%字符,需要处理一下:str.replace(/%/g, '%25')
2019-10-10 12:55:13
3932
原创 Angular4中引入高德地图
*先去官网申请所需要的keyhttps://lbs.amap.com/api/webservice/guide/create-project/get-key第一步,引入高德地图api,注意使用自己的web端js api key第二步,声明AMap第三步,html中写地图容器,设置样式大小第四步,ts中写地图内容然后地图就出现了~...
2019-09-11 15:22:52
722
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人