Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如@code-zoop 所说:您应该将字符集设置为 utf8
您可以使用元元素执行此操作:
<META http-equiv="Content-Type" content="text/html; charset=utf8">
将其放在网页中的任何位置(最好在标题中),您的标题应正常呈现。
"The TITLE element is not considered part of the flow of text" 因此不支持css标记。您可以在标题中使用HTML 实体进行装饰。
"The TITLE element is not considered part of the flow of text"
来源:http ://www.w3.org/TR/html401/struct/global.html#h-7.4.2
不幸的是,标题显示在浏览器标题栏中,而不是在应用样式的页面上,因此即使您在标题标签上设置样式,它也不会对浏览器标题栏中显示的标题产生任何影响