Load external font with javascript and jquery

前端 未结 4 1752
予麋鹿
予麋鹿 2020-12-15 12:33

I have a < p > element created dynamically with jquery, and I want to style it with a custom font that I have on my hard drive.

Could you sugest me a method to lo

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 12:58

    This piece of code does all the job:

    $("head").prepend("");
    

提交回复
热议问题