vscode css3
时间: 2023-10-12 13:05:54 浏览: 114
在VS Code中使用Autoprefixer插件可以自动为CSS文件添加浏览器厂商前缀,以实现CSS3兼容性。首先,在需要添加前缀的CSS文件上,右键点击命令面板,输入"Autoprefixer CSS",然后按回车键执行。如果想要使用完整的兼容性配置,可以在设置配置文件setting.json中添加以下代码:
"autoprefixer.browsers": [
"last 3 versions",
"ie >= 10",
"ie_mob >= 10",
"ff >= 30",
"chrome >= 34",
"safari >= 6",
"ios >= 6",
"android >= 4.4"
]
然后,打开要补全的CSS文件,按下Ctrl+Shift+P,选择"Autoprofixer",这样就可以自动补全浏览器厂商前缀了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [VScode自动补全CSS3前缀插件以及配置无效的解决办法](https://blog.csdn.net/weixin_46513664/article/details/105022919)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Web前端零基础入门HTML5+CSS3基础教程——应用VsCode](https://blog.csdn.net/m0_51277726/article/details/118976253)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文