HTML5在IE10、火狐下中文乱码问题的解决方法

学习几天HTML5了,之前一直在看文档,没有动手写,昨晚开始写代码 , 发现中文显示乱码,之前以为是不兼容IE10、然后换成火狐,谁知也不行,最后折腾一番,原来在编辑网页的时候,不仅仅是添加meta charset=utf-8这一句 , 在的文件在保存时,也要保存为UTF-8 , 就可以了 。代码如下:

复制代码代码如下:
!DOCTYPE HTML
html
meta charset="utf-8"
head
title第一个HTML5/title
/head
body

video width="320" height="240" controls="controls"
source src="https://www.questions.com.cn/i/movie.ogg" type="video/ogg"
source src="https://www.questions.com.cn/i/movie.mp4" type="video/mp4"
Your browser does not support the video tag.
/video
这是是乱吗?
/body
/html

相关经验推荐