我在(从版本7及以上版本进行测试)和文档编码方面有一个奇怪的问题。
<head>
中定义的编码HTML的开始:
<!DOCTYPE html>
<html lang="pt_br">
<head>
<meta charset="utf-8">
[...]
问题是:不同元素中的相同文本显示不同的编码输出:
HTML和预期结果:
<h1>Início</h1>
<h2>Início</h2>
Início // Bigger than h2
Início
Internet Explorer结果:
Início // h1 works fine
InÌcio // h2 does not work
所有其他文本都很好。我见过this question,但没有一个能指导我解决这个问题的答案。
发布于 2013-11-04 19:23:36
尝试为您的特殊字符使用HTML编号: ie。Ì
代表。
http://www.ascii.cl/htmlcodes.htm
发布于 2013-11-05 15:32:04
我发现这个问题只有在定义helvetica
字体的情况下才会出现。
h2 {
background: #fff;
font-family: 'Gill Sans','lucida grande', helvetica, arial, sans-serif;
font-size: 160%;
}
因此,我从CSS中删除了,所有这些都工作得很好:
h2 {
background: #fff;
font-family: 'Gill Sans','lucida grande', arial, sans-serif;
font-size: 160%;
}
https://stackoverflow.com/questions/19775335
复制相似问题