Use multiple custom fonts using @font-face?

前端 未结 5 1854
别那么骄傲
别那么骄傲 2021-01-31 01:07

I\'m sure I\'m missing something really straight forward. Been using a single custom font with normal font face:

@font-fa         


        
5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 01:47

    I use this method in my css file

    @font-face {
      font-family: FontName1;
      src: url("fontname1.eot"); /* IE */
      src: local('FontName1'), url('fontname1.ttf') format('truetype'); /* others */
    }
    @font-face {
      font-family: FontName2;
      src: url("fontname1.eot"); /* IE */
      src: local('FontName2'), url('fontname2.ttf') format('truetype'); /* others */
    }
    @font-face {
      font-family: FontName3;
      src: url("fontname1.eot"); /* IE */
      src: local('FontName3'), url('fontname3.ttf') format('truetype'); /* others */
    }
    

提交回复
热议问题