欢迎加QQ交流:
2
0
2
3
摘要: 在fillText前设置font属性 ctx.font = 'normal bold 18px sans-serif'; 但是有继承问题: 解决方法 - 1: 先绘制字体不加粗部分, 再绘制需要加粗部分, 这样就不会被继承 解决方法 - 2: 一个一个的将不需要加粗的重置字体样式也是可以的 ctx. 阅读全文
posted @ 2021-06-15 17:13 常安· 阅读(2821) 评论(0) 推荐(0) 编辑
摘要: html 父元素 .container { display: flex; flex-wrap: wrap;} 子元素.list { width: 24%; height: 100px; background-color: skyblue; margin-top: 15px;}.list:not(:n 阅读全文
posted @ 2021-06-15 09:34 常安· 阅读(5446) 评论(4) 推荐(0) 编辑