为什么该网站运行在IE怪癖模式? [英] Why is the site running in IE quirks mode?

查看:183
本文介绍了为什么该网站运行在IE怪癖模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站: http://www.sucramma.dk
当我在FF,Chrome或Safari中,该网站显示为应该显示,但在IE中该网站左对齐,并且正在运行的是quirks模式。为什么? doctype已设置!

解决方案


这是一个字节顺序标记,它对大多数文本编辑器是不可见的。尝试使用VIM并杀死它或以某种方式找到另一个文本编辑器,并在<!DOCTYPE html>



您可以简单地将<!DOCTYPE HTML> 及其下面的所有内容复制到一个新文件中并保存在其中,这意味着您不会在复制BOM之前解决此问题问题;我遇到过很多次了。


I've got a site: http://www.sucramma.dk When I'm in FF, Chrome, or Safari, the site is displayed as it should, but in IE the site is left aligned, and is running is quirks mode. Why? The doctype is set!

解决方案

It's a Byte Order Mark, , which is invisible to most text editors. Try using VIM and killing it or somehow find a different text editor and kill everything before <!DOCTYPE html>

You can simply copy <!DOCTYPE HTML> and everything below it into a new file and save over it, meaning you wont be copying the BOM coming before it to resolve this issue; I've ran into it many times.

这篇关于为什么该网站运行在IE怪癖模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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