让Safari支持微软雅黑的CSS样式表

日期:2011-12-07    阅读:132   分类:HTML~CSS

Safari for Windows版本 默认使用的英文字体渲染中文,但是它自定义字体功能似乎还不能起作用,好在它能提供自定义CSS,我就写了一个通用CSS样式表.这样就能使用微软雅黑来渲染中文字体了,如果你没有微软雅黑,请选用别的字体代替微软雅黑.

  更新:去掉9px的定义,显示效果依然正常.

  把这个CSS保存在你喜欢的位置 然后再偏好设置->高级的样式表里面调用就行了

  CSS代码如下:

  提示:只要把下面内容复制到记事本里,然后保存为“safari.css”就可以了!

body
{
font-family: 微软雅黑;
text-decoration: none;
}
a
{
font-family: 微软雅黑;
text-decoration: none;
}

div
{
font-family: 微软雅黑;
text-decoration: none;
}
span
{
font-family: 微软雅黑;
text-decoration: none;
}
p
{
font-family: 微软雅黑;
text-decoration: none;
}
a:active
{
font-family: 微软雅黑;
text-decoration: none;
}
a:hover
{
font-family: 微软雅黑;
text-decoration: none;
}

table
{
font-family: 微软雅黑;
text-decoration: none;
}

td
{
font-family: 微软雅黑;
text-decoration: none;
}

tr
{
font-family: 微软雅黑;
text-decoration: none;
}

本页链接: http://www.scriptlover.com/static/1290-safari-css-字体

标签:

相关文章

网友评论

Leave a comment

 required

 required (Not published)

 required