@font-face not working on a client site?

前端 未结 3 2090
自闭症患者
自闭症患者 2021-01-13 00:47

This is CSS code

@font-face {
    font-family: \'FuturaStdBook\';
    src: url(\'site/font-face/futurastd-medium-webfont.eot\');
    src: local(\'☺\'), url(\         


        
3条回答
  •  难免孤独
    2021-01-13 01:42

    If you're using IIS, you'll need to register a MIME type for the .eot extension.

    1. In IIS Manager, in the IIS section, open the MIME Types configuration
    2. Under "Actions", click "Add..."
    3. Enter .otf in the extension box, and application/octet-stream in the MIME type box.
    4. Click OK

    You'll need to do this for each non-standard extension you use (.ttf is already registered, .woff is not), but that should do it!

提交回复
热议问题