我们可以在页面中导入新的字体样式吗 [英] can we import new font styles in our's page

查看:81
本文介绍了我们可以在页面中导入新的字体样式吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我使用的是默认字体...
我想用新的字体样式进行设计...
我已经安装了字体文件夹...
我可以在ms-word,photoshop中使用这些字体...
但我在.net包中看不到...
我如何导入新的前端以在我们的网页中使用...
有什么办法吗?

hi...
i am use the fonts which are default font...
i want to design with new font styles...
i have already installed font folders...
i can use those fonts in ms-word, photoshop...
but i can''t see in the .net packages...
how can i import new front to use in our''s web page...
is there any way to do?

推荐答案

选中此
http://stackoverflow.com/questions/107936/how- to-add-some-non-standard-font-to-website [
Check this
http://stackoverflow.com/questions/107936/how-to-add-some-non-standard-font-to-website[^]


这可以通过CSS 2.0完成,并且可以在基于WebKit的浏览器中使用.我认为,它并没有得到广泛的支持.
This could be done via CSS 2.0 and should work in WebKit based browser. It is not really widely supported, though, I think.
<style type="text/css">
@font-face {
    font-family: "My Custom Font";
    src: url(http://www.example.org/mycustomfont.ttf) format("truetype");
}
p.customfont { 
    font-family: "My Custom Font", Verdana, Tahoma;
}
</style>
<p class="customfont">Hello world!</p>


这篇关于我们可以在页面中导入新的字体样式吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆