How to host material icons offline?

后端 未结 19 2485
无人及你
无人及你 2020-12-02 06:55

My apologies if this is a very simple question, but how do you use google material icons without a



        
19条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-02 07:36

    This may be an easy Solution


    Get this repository that is a fork of the original repository Google published.

    Install it with bower or npm

    bower install material-design-icons-iconfont --save
    
    npm install material-design-icons-iconfont --save
    

    Import the css File on your HTML Page

    
    

    or

    
    

    Test: Add an icon inside body tag of your HTML File

    face
    

    If you see the face icon, you are OK.

    If does not work, try add this .. as prefix to node_modules path:

    
    

提交回复
热议问题