美文网首页
设置的颜色不显示

设置的颜色不显示

作者: 晨曦Bai | 来源:发表于2019-07-09 10:17 被阅读0次

    原因:没有导入主题

    material

    https://material.angular.io//theming

    • Available pre-built themes:
    deeppurple-amber.css
    indigo-pink.css
    pink-bluegrey.css
    purple-green.css
    

    解决方法:

    1. If you're using Angular CLI, this is as simple as including one line in your styles.css file:

    @import '@angular/material/prebuilt-themes/deeppurple-amber.css';

    1. Alternatively, you can just reference the file directly in index.html. This would look something like:

    <link href="node_modules/@angular/material/prebuilt-themes/indigo-pink.css" rel="stylesheet">

    materialize

    导入 node_modules/ materialize.css

    相关文章

      网友评论

          本文标题:设置的颜色不显示

          本文链接:https://www.haomeiwen.com/subject/ilxlcctx.html