一. Quirks mode(诡异模式)
二.Almost standards mode(几乎标准模式)
三.Standards mode (标准模式)
1.诡异模式代码显示
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Quiks mode(诡异模式)</title> <style type="text/css"> input { font-family: Verdana, Geneva, sans-serif; } </style> <script type="text/javascript"> function showInfo(){ document.getElementById("box-mode").innerHTML=document.compatMode; } </script> </head> <body> <input type="button" value="显示信息" onClick="showInfo();"> <h1 id="box-mode"></h1> </body> </html>