How to configure css associated to mdl-select on angular 2 quickstart solution
How to configure css associated to mdl-select on angular 2 quickstart solution
我正在尝试在 angular 2 上的表单中使用 mdl-select 组件,但该组件一直显示为 drop drown 状态。我认为这是因为我没有将 css 与其相关联,但我不确定如何在 angular 2 快速入门解决方案中执行此操作。任何指导表示赞赏...
enter image description here
谢谢:)
我遇到了同样的问题。在尝试了不同的东西之后,这对我有用:我将 SASS styles .scss 添加到 angular-cli.json 的‘styles’数组中。而不是 .css 文件到 index.html。而且,我们还必须为 popover 组件添加 scss,因为这是内部使用的组件。不过,您不必导入 popover 组件,除非您在其他地方使用它。
angular-cli.json
"styles": [
"styles.css",
"../node_modules/@angular2-mdl-ext/select/select.scss",
"../node_modules/@angular2-mdl-ext/popover/popover.scss"
],
我正在尝试在 angular 2 上的表单中使用 mdl-select 组件,但该组件一直显示为 drop drown 状态。我认为这是因为我没有将 css 与其相关联,但我不确定如何在 angular 2 快速入门解决方案中执行此操作。任何指导表示赞赏...
enter image description here
谢谢:)
我遇到了同样的问题。在尝试了不同的东西之后,这对我有用:我将 SASS styles .scss 添加到 angular-cli.json 的‘styles’数组中。而不是 .css 文件到 index.html。而且,我们还必须为 popover 组件添加 scss,因为这是内部使用的组件。不过,您不必导入 popover 组件,除非您在其他地方使用它。
angular-cli.json
"styles": [
"styles.css",
"../node_modules/@angular2-mdl-ext/select/select.scss",
"../node_modules/@angular2-mdl-ext/popover/popover.scss"
],