在 CJK(中日韩)文字中,只有简体中文在官方标准中使用弯引号(“ ” 以及 ‘’)来表示引用。可能因为这个原因,当初 Unicode 在制定时并未独立设置「全角弯引号」这样的字符,于是,中文和西文的弯引号共用以下...
笔记
如何解决img出现白色底边
在开发的过程中,发现插入一张图片后,图片会出现白色底边,到底是怎样解决呢,首先看一下代码: HTML代码: <body> <div class="banner"> <img src="img/banner.jpg" alt="bann...
column-count margin对齐
只需对列元素添加 display: inline-block;
aspect css polyfill
.aspect-ratio-box { position: relative; max-width: 500px; } .aspect-ratio-box::before { float: left; padding-top: 56.25%; content: ''; } .aspect-ratio-box::after { display: bl...
Commit message 和 Change log 编写指南
Git 每次提交代码,都要写 Commit message(提交说明),否则就不允许提交。 $ git commit -m "hello world" 上面代码的-m参数,就是用来指定 commit mesage 的。 如果一行不够,可以只执行git commit,就...
node-sass和chromedriver
yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ yarn config set "chromedriver_cdnurl" "https://npm.taobao.org/mirrors/chromedriver"
Electron 12+ 出现 require is not defined 报错解决
在 Electron 12 及更高版本,设置了nodeIntegration: true及nodeIntegrationInWorker: true、nodeIntegrationInSubframes: true,渲染进程仍然可能出现require is not defined的报错。 这个报错还跟随有mo...
github镜像站
https://git.sdut.me/ https://hub.fastgit.org/ https://github.com.cnpmjs.org/ https://github1s.com/
项目升级go 1.16.0采坑记
今天brew终于提供了go 1.16.0的安装更新,更新完成了,先找了一个项目,升级到go 1.16.0。我的环境是mac Big Sur,通过brew安装go,IDE是vscode,项目名称app-service。 删除app-service的go.mod和go.sum...
python压缩视频
# ffmpeg -i 1.mp4 -r 10 -pix_fmt yuv420p -vcodec libx264 -preset veryslow -profile:v baseline -crf 23 -acodec aac -b:a 32k -strict -5 147fss.mp4 # -i 输入的视频文件 # -r 每一秒的帧数,一秒10帧大...