A collection of 3 posts

总结

1. 矩形图片显示中间部分 .panel{ height: 200px; width: 200px; background-size: cover; background-position: center; background-image: url('./img1.png'); }

1.1 补充: 使用object-fit ...

面试题

怎么判断一个变量是null 先看一下 typeof 所能检测的值 console.log('""',typeof '') // string console.log('new String()',typeof new String()) //object ...