兄弟们 如果你的网页老是错位 就要看一下你网页的解析模式 >>>>
2011-11-29 00:00
323 查看
<script type="text/javascript">
if(document.compatMode!="BackCompat")
document.write("标准模式");
else
document.write("诡异模式");
</script>
if(document.compatMode!="BackCompat")
document.write("标准模式");
else
document.write("诡异模式");
</script>
详情 请阅读 浏览器对网页的两种(三种)解析模式quirks mode、strict mode (Almost Standards Mode)
相关文章推荐
- <转载> 设计模式精解c++-GoF 23 种设计模式解析
- IE10打开网页后,自动设置浏览器模式为“IE10兼容性视图”,我添加了 <meta http-equiv="X-UA-Compatible" content="IE=8">只修改了文档模式,请问如何
- JAVA设计模式(2) —<创建型>抽象工厂模式(Abstract Factory)
- 设计模式 (python) ---> Singleton
- 错误 1 error LNK2019: 无法解析的外部符号 "public: __thiscall chain<int>::~chain<int>(void)" (??1?$chain@H@@QAE@
- 黑马北京新闻项目连载(6)--->Gson解析、刷新加载、WebView展现
- volley源代码解析(七)--终于目的之Response<T>
- Android ApiDemos示例解析(53):Graphics->Arcs
- android源码解析之(八)-->Zygote进程启动流程
- Android ApiDemos示例解析(162):Views->Layouts->TableLayout->07. Column Collapse
- 验证视图状态 MAC 失败。如果此应用程序由网络场或群集承载,请确保 <machineKey> 配置指定了相同的 validationKey 和验证算法。不能在群集中使用 AutoGenerate
- git : local -> gerrit;如果避免不断产生新的patch
- 实模式->保护模式->实模式 的切换步骤
- Android ApiDemos示例解析(118):Views->Focus->4. Internal Selection
- _BLOCK_TYPE_IS_VALID(pHead->nBlockUse问题解析
- Android ApiDemos示例解析(204):Graphics->OpenGL ES->Frame Buffer Object
- <十>读<<大话设计模式>>之观察者模式
- Android ApiDemos示例解析(193):Views->Tabs->Content By Id
- <自己动手写操作系统>第三章pmtest7源码解析——检测系统内存
- elasticsearch核心知识--29._multi-index&multi-type搜索模式解析以及搜索原理