总结
1. 矩形图片显示中间部分 .panel{ height: 200px; width: 200px; background-size: cover; background-position: center; background-image: url('./img1.png'); }
1.1 补充: 使用object-fit ...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 ...
文件目录 1. icon.png 在谷歌状态栏显示的图标 2. manifest.json 关于插件的一些配置文件 3. popup.html 点击插件图标后显示内容 和标准的html结构也一致 4. popup.js 页面的事件 manifest.json ...