Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 角度:不能使用引导类“使用ngClass更改颜色”;文本白色“;_Html_Angular_Colors_Background Color_Ng Class - Fatal编程技术网

Html 角度:不能使用引导类“使用ngClass更改颜色”;文本白色“;

Html 角度:不能使用引导类“使用ngClass更改颜色”;文本白色“;,html,angular,colors,background-color,ng-class,Html,Angular,Colors,Background Color,Ng Class,不能使用引导类“文本白色”使用ngClass更改颜色 代码: 如果log是一个数字,则语法正确。首先检查它是否是数字,然后确保该类在应用程序的css中具有style属性 在组件css中添加此项以进行检查 .text-white{ color:white; } 这回答了你的问题吗?正如你提到的,它已经在工作了。但我指的是引导类“文本白色”? .text-white{ color:white; }

不能使用引导类“文本白色”使用ngClass更改颜色

代码:

如果log是一个数字,则语法正确。首先检查它是否是数字,然后确保该类在应用程序的css中具有style属性

在组件css中添加此项以进行检查

.text-white{
  color:white;
}

这回答了你的问题吗?正如你提到的,它已经在工作了。但我指的是引导类“文本白色”?
.text-white{
  color:white;
}