---
title: "浏览器3种文档模式 Q , A ,S"
author: "deng131"
date: "2011-05-22T22:19:55Z"
tags: []
categories: ["Web前端"]
slug: "3-q-a-s"
draft: false
lastmod: "2011-05-22T22:33:27Z"
id: 1054693
url: "https://thinking80s.iteye.com/blog/1054693"
---

怪癖模式、标准模式和准标准分别表示为Q、S和A。当浏览器仅有两种模式时，如果表格单元格的行高和Mozilla的标准模式表现一致时，标准模式标记为“S”，如果表格单元格的行高和Mozilla的准标准模式表现一致时，则标记为“A”。

浏览器的模式选择，有三个：

<span style="color:red">Quirks Mode, Standards Mode, Almost Standards Mode</span>

性能 Q>A>S，其中IE的Q模式不支持css2.1，但性能最好，比其他模式快很多很多.

IE很重要，性能很重要，对用户来说，最好的模式就是Q, 对开发者而言，最好的模式是S。

参考：
<http://hsivonen.iki.fi/doctype/>
<http://hi.baidu.com/xletian/blog/item/8483bf1b54e19f128718bf2a.html>