.css文件
*{
font-family: SegoeUI;
}
@font-face{
font-family:'SegoeUI';
src:local('Segoe UI'),url('//c.s-microsoft.com/static/fonts/segoe-ui/west-european/Bold/latest.woff2') format("woff2"),
url('//c.s-microsoft.com/static/fonts/segoe-ui/west-european/Bold/latest.woff') format("woff"),
url('//c.s-microsoft.com/static/fonts/segoe-ui/west-european/Bold/latest.ttf') format("ttf");
font-weight:600
}
@font-face{
font-family:'SegoeUI';
src:local('Segoe UI'),url('//c.s-microsoft.com/static/fonts/segoe-ui/west-european/normal/latest.woff2') format("woff2"),
url('//c.s-microsoft.com/static/fonts/segoe-ui/west-european/normal/latest.woff') format("woff"),
url('//c.s-microsoft.com/static/fonts/segoe-ui/west-european/normal/latest.ttf') format("ttf");
font-weight:400
}
或:
@font-face{
font-family: SegoeUI;
src: url('../font/webfont1.woff2');
font-weight: normal;
font-style: normal;
}
@font-face{
font-family: SegoeUI;
src: url('../font/webfont2.woff2');
font-weight: normal;
font-style: normal;
}