English 中文(简体)
如何在 HTML 中修正字体问题?
原标题:How to fix the font issue in HTML?
  • 时间:2012-05-23 22:15:39
  •  标签:
  • html

我有像钟铃一样的Html(Hello.html)

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>Test</title>
    </head>
    <body>
        <div>
            ¿Hola cómo está?
        </div>
    </body>
</html>

在浏览器中运行时显示为“Hola cómo está ” 。

Is there any solution to get correct out put without altering the hello.html file?

我希望,它是用西班牙语写的,但我正在寻找任何其他解决办法,例如改变浏览器或编辑器中的编码类型或字体。

最佳回答

根据你问题评论部分的澄清...

如果您正在使用Google Chrome, 您的计算机将设置为英语区域, 装入页面, 然后右键点击身体, 并选择“ 转换为英语 ” 。

听起来像是面试的诡计问题 而不是编程问题

问题回答

编辑: 只是注意到了要求。 但有些西班牙字符需要 Unicode, 您必须在 html 文件中声明 。

把这个放进你的脑子里

<meta http-equiv="content-type" content="text/html;charset=utf-8" />

我看不出有什么错, 如果您在 html 中引用字体类型, 而网页不同是因为您的编辑器, 如果您真的想要更改字体, 您需要将字体标签设置在文本周围, 或者更好地在 CSS 中定义字体标签

没有 No.

您不能在不更改 html 文件的情况下这样做 。

Place this <meta> tag in your Head Section
<meta charset="UTF-8">





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签