如何在Windows和Mac上使html看起来一样 [英] How do I make the html look the same on windows and mac

查看:581
本文介绍了如何在Windows和Mac上使html看起来一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的HTML编码是很好的链接工作和一切。

唯一的问题是当我在Mac上使用它时,字体与Windows上的字体看起来不一样。

我应该使用什么标签才能在mac计算机上更改为正确的字体。

这是我用于网页的编码:

< !DOCTYPE html>

< html>

< head>

< title>舍伍德风格< / title>

< meta charset =utf-8/>

< style type =text / css>

body {background-color:#000000;

font-family:Bradley Hand ITC;

}

a {text -decoration:none}

fieldset {border:none;}

表格{float:right}

< / style>

< / head>

My HTML coding is fine link works and everything.
The only problem is the when I use it on a mac the font does not look the same as the one on Windows.
What tags should I be using in order to change to the correct font on a mac computer.
Here's the coding I used for the webpage:
<!DOCTYPE html>
<html>
<head>
<title> Sherwood Style </title>
<meta charset="utf-8"/>
<style type="text/css">
body{ background-color:#000000;
font-family:Bradley Hand ITC;
}
a{ text-decoration: none}
fieldset{ border: none;}
form{float:right}
</style>
</head>

推荐答案

原则上,您可以将字体嵌入HTML中,然后以相同的方式呈现在不同的系统上:

http://stackoverflow.com/questions/ 11737168 / how-to-embed-font-css [ ^ ]。



但是,我不建议这样做。不同的浏览器在相同的操作系统上引入了更明显的差异。



有关浏览器不兼容性的一些想法,请参阅我过去的答案:

在不同浏览器中运行时,网页布局会发生变化。 [ ^ ],

如何将桌面网站转换为移动网站 [ ^ ]。



-SA
In principle, you can embed your font in HTML, then it will be rendered in the same way on different systems:
http://stackoverflow.com/questions/11737168/how-to-embed-font-css[^].

However, I would not recommend that. Different browsers introduce even more noticeable difference, on the same OS or not.

For some ideas on browser incompatibilities, please see my past answers:
webpages layout change when running in different browsers.[^],
How Do I Convert Desktop Site Into Mobile Site[^].

—SA


这篇关于如何在Windows和Mac上使html看起来一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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