problem:
Use the vsCode editor to configure Autoprefixer3.0 to fail to automatically complete the compatibility code
Solution:
Changed Autoprefixer3.0 to 2.0 version, and sorted out the results of web surfing, finally found a solution, and carried out the following steps to verify. One talks about one, discuss with each other if there is a problem, don't spray! ! !
ps. If a code friend finds a solution for Autoprefixer3.0 version, welcome to communicate
Solution steps:
- First set up the node.js environment (Du Niang will have it when she finds it)
- Open vsCode to search for Autoprofixer. Generally, it is the latest version by default. You need to download the new version before replacing version 2.2.0 (Note: Remember to reload after replacement!!!)
- After installation, you need to find Autoprefixer in Preferences> Settings> Extensions, enter setting.json, and set the following code
"autoprefixer.browsers": [
// "last 9 versions",
"ie >= 6", //ie6以上
"firefox >= 8",
"chrome >= 24",
"Opera>=10"
]
![](https://img-blog.csdnimg.cn/20200920213416760.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NjAzNDM3NQ==,size_16,color_FFFFFF,t_70#pic_center)
- Open the terminal (cthl + `), enter the code
npm i -D autoprefixer
npm i -g autoprefixer
- Close the vsCode software. Right click on the single machine to set properties> compatibility, select "run this program as an administrator"
- Double-click to open the software test, select the css file, press ctrl+shift+p, and then select Autoprefixer, it can be automatically completed
problem:
Use the vsCode editor to configure Autoprefixer3.0 to fail to automatically complete the compatibility code
Solution:
Changed Autoprefixer3.0 to 2.0 version, and sorted out the results of web surfing, finally found a solution, and carried out the following steps to verify. One talks about one, discuss with each other if there is a problem, don't spray! ! !
ps. If a code friend finds a solution for Autoprefixer3.0 version, welcome to communicate
Solution steps:
- First set up the node.js environment (Du Niang will have it when she finds it)
- Open vsCode to search for Autoprofixer. Generally, it is the latest version by default. You need to download the new version before replacing version 2.2.0 (Note: Remember to reload after replacement!!!)
- After installation, you need to find Autoprefixer in Preferences> Settings> Extensions, enter setting.json, and set the following code
"autoprefixer.browsers": [
// "last 9 versions",
"ie >= 6", //ie6以上
"firefox >= 8",
"chrome >= 24",
"Opera>=10"
]