我在全局styles.css中添加了以下代码,使其具有浅蓝色背景色。
html, body{
background-color: lightblue ;
}
当我刷新home.component页面时,会短暂看到浅蓝色屏幕,然后我得到的home.component没有浅蓝色背景。
是什么导致home.component覆盖背景颜色。我没有用于home.component或app.component的CSS文件。
更新:我做了,F12,元素标签,在背景上过滤。我看到白色覆盖了style.css背景颜色。似乎aws-amplify代码在styles.css中覆盖了我的浅蓝色背景色