You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS Code无法识别CSS transition属性问题求助

VS Code中CSS transition属性内的目标属性无语法高亮,显示为白色

无论在CSS的transition属性中指定任何目标属性(比如width、background-color),VS Code都无法识别这些属性,它们会显示为白色,没有正常的语法高亮效果。

示例HTML代码

<div class="transition-element"></div>

示例CSS代码

.transition-element {
  width: 200px;
  height: 200px;
  background: #42b983;
  /* 此处的width、background均显示为白色,无语法高亮 */
  transition: width 0.5s ease, background 0.3s linear;
}

问题截图

VS Code中transition子属性无高亮的截图

希望能找到解决这个语法高亮异常问题的方法。

内容的提问来源于stack exchange,提问作者A L

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.12 22:35:54