html - 如何在 Angular 中为整个应用程序使用样式 angular 4

标签 html css angular typescript

我想在 Angular 应用程序的样式中创建通用样式,当我创建仅用于 HTML 的组件时,这可能吗? 我这样试过,但没有成功。

@import "../../styles";

我正在接受这个错误。

Here is the Photo to show the error

最佳答案

我从

@import "../../styles";

@import "../../styles.css";

这是有效的。

关于html - 如何在 Angular 中为整个应用程序使用样式 angular 4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49521688/

相关文章:

angular - NgRx/Effects 不触发 Reducer

html - 从输入中按 Tab 仅在 Chrome 中向上移动输入

python - 在 python 中删除 html 标签之间的空格和换行符(又名取消格式)

javascript - 固定 div 内的相对 div

java - 如何将 css 样式设置为 GWT TextBox 文本?

html - col-md-4 div 中的图像不是全宽

javascript - 如何使用 CSS 转换将加号变为减号?

node.js - 如何像 Google 文档一样在羽毛笔编辑器中执行跟踪更改?

css - Div 在父 block 中对齐

javascript - 从 rxjs 订阅返回一个函数