会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Amy-WebFrontEnd
It's not how big the house is,it's how happy the house is.
博客园
首页
新随笔
联系
订阅
管理
2022年2月22日
html2canvas 下载的图片有空白
摘要: 解决方法:为最外层div添加背景颜色参考: https://www.cnblogs.com/padding1015/p/9225517.html
阅读全文
posted @ 2022-02-22 14:46 Amy-WebFrontEnd
阅读(445)
评论(0)
推荐(0)
2022年2月10日
html2canvas 支持backgroundClip:text
摘要: 原html2canvas.js不支持background-clip : text (文字渐变效果) 结合以下两个: https://jsfiddle.net/kaykie/2qnoxdoz/https://jsfiddle.net/9vhy58jp/直接使用两种方法都会出现错位问题 https://
阅读全文
posted @ 2022-02-10 13:29 Amy-WebFrontEnd
阅读(1540)
评论(0)
推荐(0)
2021年12月16日
使用padding代替高度实现背景图片、图片等比例自适应
摘要: 一、背景图片 使用padding代替高度的原因可查阅参考1链接 固定宽高比 .boxWrapper{ max-width: 320px; } .box { width: 100%; height: 0; padding-bottom: 84.375%; /*图片宽高 320/270 270/375=
阅读全文
posted @ 2021-12-16 16:08 Amy-WebFrontEnd
阅读(180)
评论(0)
推荐(0)
2021年11月2日
js公农历互转(1900~2100年)
摘要: https://blog.jjonline.cn/userInterFace/173.htmljs公历转农历(1900~2100年)
阅读全文
posted @ 2021-11-02 09:02 Amy-WebFrontEnd
阅读(294)
评论(0)
推荐(0)
2021年10月30日
webpack命令
摘要: 1.webpack --mode development 原因:非全局安装 ,全局安装即可,npm i webpack webpack-cli -g 2. webpack --mode development 开发环境下打包,默认入口及出口文件。 3. webpack ./src/index.js
阅读全文
posted @ 2021-10-30 13:40 Amy-WebFrontEnd
阅读(1565)
评论(0)
推荐(0)
2021年10月23日
vscode快速输出console.log
摘要: 项目开发中经常使用console.log来测试,那在vscode中如何快速输出呢? File-->Preferences-->User Snippets中找到相关代码,此处代码已被注释,将注释代码取消后保存即可。
阅读全文
posted @ 2021-10-23 09:06 Amy-WebFrontEnd
阅读(1177)
评论(0)
推荐(0)
2019年2月18日
正则获取html标签字符串中图片地址
摘要: html标签字符串: 需求:使用正则获取img图片地址 1、使用正则后向引用 提示 * 为invalid quantifier,需要添加上 代表任意字符的 . 成功获取图片地址
阅读全文
posted @ 2019-02-18 15:10 Amy-WebFrontEnd
阅读(1103)
评论(0)
推荐(0)
2018年6月11日
xml转json
摘要: https://davidwalsh.name/convert-xml-json http://www.jiangweishan.com/article/biji97.html
阅读全文
posted @ 2018-06-11 18:00 Amy-WebFrontEnd
阅读(190)
评论(0)
推荐(0)
2018年5月18日
videojs实现双击视频全屏播放、播放器全屏时视频未全屏
摘要: https://blog.csdn.net/staritstarit/article/details/78451963 暂停时只能使用左下角的暂停按钮,点击视频时不再响应 使用width和height属性设置video <video width="1000" height="455">
阅读全文
posted @ 2018-05-18 17:33 Amy-WebFrontEnd
阅读(2118)
评论(0)
推荐(0)
2018年2月24日
angularjs中使用swiper时不起作用,最后出现空白位
摘要: controller.js中定义swipers指令: index.html中使用swipers指令: 开发过程中的遇到的问题:1、点击除“要闻”外的栏目,再点击“要闻”,多连发滚动不起作用;2、向下滚动要闻列表后再向上滚动时多连发滚动不起作用(原因:向上滚动时重新请求了接口)解决方法:将此处功能封装
阅读全文
posted @ 2018-02-24 17:11 Amy-WebFrontEnd
阅读(696)
评论(0)
推荐(0)
下一页
公告