我一直在开发一个使用Google Fonts API的网站.它很棒,据说已经在IE中测试过,但是在IE 8中进行测试时,字体根本就没有被设计样式.
我按照Google的指示包含了字体,因此:
<link href="http://fonts.googleapis.com/css?family=Josefin+Sans+Std+Light"
rel="stylesheet" type="text/css" />
Run Code Online (Sandbox Code Playgroud)
并在CSS中将其名称添加到字体系列的前面:
Run Code Online (Sandbox Code Playgroud)body { font-family: "Josefin Sans Std Light", "Times New Roman", Times, serif; font-size: 16px; overflow-y: scroll; overflow-x: hidden; color: #05121F; }
就像Chrome,Firefox,Safari中的魅力一样.IE 8中没有骰子.任何人都知道为什么?