使用document.compatMode,如果值为“CSS1compat”就表明该页面被定义了头