4
没有<!DOCTYPE html>
下面的HTML:当包含<!DOCTYPE html>时,为什么html布局会改变?
<style>
input { width: 400px; }
span { width: 160px; display: inline-block; }
div { width: 560px; }
</style>
<div>
<span>Slug</span><input type=text placeholder="enter-article-slug-here">
</div>
呈现这样在Chrome和FF:
但当包括行<!DOCTYPE html>
,在HTML呈现这样的:
为什么这是?
可能重复[什么是怪癖模式?](http://stackoverflow.com/questions/1695787/what-is-quirks-mode) –