Code Monkey home page Code Monkey logo

font-demo's Introduction

  1. 已经有了font-family,为什么还要使用外部字体呢?

因为font-famlily仅支持机器有的字体,机器上没有的字体无法展示。例如你写了font-family:'康熙字典体',绝大部分人的电脑上没有康熙字典体这种字体,应该会显示成默认的字体。

缺点:

  • 每个机器的情况千差万别,不能保持显示效果的一致性。
  • 不可预测性。
  1. 常说的’内部字体‘和’外部字体‘,指的是什么?
  • 内部字体:机器自带的字体。
  • 外部字体:非内部字体。可以来自自己的服务器,也可来自第三方的服务器(例,Google的字体)。

Demo

demo01 How to use external font demo02 How to use fontmin demo03 How to use icon-font demo04 How to use font-spider

font-demo's People

Contributors

zhouzhongyuan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.