2013-07-15 57 views
0

我安裝即9,並試圖提出我的申請。我可以看到,CSS正確應用和頁面呈現良好。當我的一位同事做了同樣的事情時,他沒有正確地獲取頁面。所有的段落看起來都是錯位的,額外的空間和更多的問題。即9瀏覽器兼容性

通過按F12檢查我的機器的瀏覽器模式和文檔模式,它分別是IE9兼容性視圖和IE7標準。對於我的同事來說,這兩種模式都是IE9。

問題: 1)爲什麼在不同的機器上每次安裝IE9的設置都不同? 2)如何控制設置使其在所有機器中統一?

+0

你的頁面有什麼doctype? IE的文檔模式主要取決於文檔類型。 –

+0

以下是IE用於確定網頁文檔模式的因素列表:http://msdn.microsoft.com/en-us/library/ff405803%28v=vs.85%29.aspx –

+0

你有沒有檢查兼容性視圖設置(在工具菜單中)?默認情況下,IE通常具有「在兼容視圖中顯示Intranet站點」選項,並且localhost被認爲屬於Intranet。無論如何,你可以用''標籤覆蓋兼容性視圖設置(它必須位於''之前'' )。 – <span class="text-secondary"> <small> <span></span> </small> </span> </p> </div> </div> </div> </div> </div> </article> </div> <div class="answer-title"> <span class="text-logo margin-top-sm">A</span> <h2 class="title h4">回答</h2> </div> <div class="item-description text-md markdown-body margin-bottom-40 voidso"> <article class="board-top-1 padding-top-10"> <div class="post-col vote-info"> <span class="count">0<i class="fa fa-thumbs-up"></i></span> </div> <div class="post-offset"> <div class="answer fmt"> <p>1)IE設置取決於您的安裝和舊版IE。它在每臺機器上總是不同的。</p> <p>2)只需將下面的代碼放在您的頭文件中,默認情況下您的IE瀏覽器將在定義的兼容視圖中打開。</p> <pre><code class="prettyprint-override"><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"> </code></pre> <p>如果要將IE8設置爲默認兼容性視圖,則可以將「IE = EmulateIE9」更改爲「IE = EmulateIE9」。</p> </div> <div class="post-info"> <div class="post-meta row"> <p class="text-secondary col-lg-6"> <span class="source"> <a rel="noopener" target="_blank" href="https://stackoverflow.com/q/19419668">來源</a> </span> </p> <p class="text-secondary col-lg-6"> <span class="float-right date"> <span>2013-10-17 06:26:33</span> </p> <p class="col-12"></p> <p class="col-12"></p></div> </div> </div> </article> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="1038284119" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="clearfix"> </div> <div class="relative-box"> <div class="relative">相關問題</div> <ul class="relative_list"> <li> 1. <a href="http://hk.uwenku.com/question/p-xucdcmiq-rx.html" target="_blank" title="IE瀏覽器兼容瀏覽器兼容性問題/ Firefox"> IE瀏覽器兼容瀏覽器兼容性問題/ Firefox </a> </li> <li> 2. <a href="http://hk.uwenku.com/question/p-raidkqgl-bz.html" target="_blank" title="CSS瀏覽器兼容性"> CSS瀏覽器兼容性 </a> </li> <li> 3. <a href="http://hk.uwenku.com/question/p-bjnqpzja-sm.html" target="_blank" title="WebGL瀏覽器兼容性"> WebGL瀏覽器兼容性 </a> </li> <li> 4. <a href="http://hk.uwenku.com/question/p-cqlvrubl-zo.html" target="_blank" title="瀏覽器兼容性"> 瀏覽器兼容性 </a> </li> <li> 5. <a href="http://hk.uwenku.com/question/p-fzvblkbx-bcu.html" target="_blank" title="CSS3瀏覽器兼容性"> CSS3瀏覽器兼容性 </a> </li> <li> 6. <a href="http://hk.uwenku.com/question/p-vcwhcrzh-oq.html" target="_blank" title="瀏覽器兼容性"> 瀏覽器兼容性 </a> </li> <li> 7. <a href="http://hk.uwenku.com/question/p-bvhlucis-bmk.html" target="_blank" title="跨瀏覽器兼容性"> 跨瀏覽器兼容性 </a> </li> <li> 8. <a href="http://hk.uwenku.com/question/p-mtruyhth-uq.html" target="_blank" title="Ajax瀏覽器兼容性"> Ajax瀏覽器兼容性 </a> </li> <li> 9. <a href="http://hk.uwenku.com/question/p-rzuzjzsz-vd.html" target="_blank" title="ASP.Net瀏覽器兼容性"> ASP.Net瀏覽器兼容性 </a> </li> <li> 10. <a href="http://hk.uwenku.com/question/p-acrubfoc-he.html" target="_blank" title="量角器是否具有IE 9瀏覽器兼容性?"> 量角器是否具有IE 9瀏覽器兼容性? </a> </li> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-6208739752673518" data-ad-slot="4606349252"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <li> 11. <a href="http://hk.uwenku.com/question/p-yatetscj-bee.html" target="_blank" title="面對瀏覽器與IE-9的兼容性問題"> 面對瀏覽器與IE-9的兼容性問題 </a> </li> <li> 12. <a href="http://hk.uwenku.com/question/p-fcqncgwl-dr.html" target="_blank" title="瀏覽器兼容性問題"> 瀏覽器兼容性問題 </a> </li> <li> 13. <a href="http://hk.uwenku.com/question/p-dynmmjbu-ew.html" target="_blank" title="三個js瀏覽器兼容性"> 三個js瀏覽器兼容性 </a> </li> <li> 14. <a href="http://hk.uwenku.com/question/p-dsvdgylt-ge.html" target="_blank" title="iOS Chrome瀏覽器/ Chromecast兼容性"> iOS Chrome瀏覽器/ Chromecast兼容性 </a> </li> <li> 15. <a href="http://hk.uwenku.com/question/p-pcevgokl-be.html" target="_blank" title="測試瀏覽器兼容性"> 測試瀏覽器兼容性 </a> </li> <li> 16. <a href="http://hk.uwenku.com/question/p-bxwrfjid-mr.html" target="_blank" title="jQuery.data()和跨瀏覽器的兼容性?"> jQuery.data()和跨瀏覽器的兼容性? </a> </li> <li> 17. <a href="http://hk.uwenku.com/question/p-ucoqblwv-ko.html" target="_blank" title="搜索瀏覽器兼容性工具"> 搜索瀏覽器兼容性工具 </a> </li> <li> 18. <a href="http://hk.uwenku.com/question/p-qeuqjgtu-qq.html" target="_blank" title="彈出式瀏覽器不兼容性"> 彈出式瀏覽器不兼容性 </a> </li> <li> 19. <a href="http://hk.uwenku.com/question/p-eesuxvdh-qt.html" target="_blank" title="Uploadify瀏覽器兼容性問題"> Uploadify瀏覽器兼容性問題 </a> </li> <li> 20. <a href="http://hk.uwenku.com/question/p-zxwuuuzl-sn.html" target="_blank" title="Opentype功能跨瀏覽器兼容性"> Opentype功能跨瀏覽器兼容性 </a> </li> <li> 21. <a href="http://hk.uwenku.com/question/p-qthvzgqd-bda.html" target="_blank" title="IE7和IE8的瀏覽器兼容性"> IE7和IE8的瀏覽器兼容性 </a> </li> <li> 22. <a href="http://hk.uwenku.com/question/p-mbllwfbb-bgh.html" target="_blank" title="Dash JS Player跨瀏覽器兼容性"> Dash JS Player跨瀏覽器兼容性 </a> </li> <li> 23. <a href="http://hk.uwenku.com/question/p-tmkktgnw-bnm.html" target="_blank" title="jQuery中的瀏覽器兼容性"> jQuery中的瀏覽器兼容性 </a> </li> <li> 24. <a href="http://hk.uwenku.com/question/p-syarkgom-eg.html" target="_blank" title="jQuery追加瀏覽器兼容性"> jQuery追加瀏覽器兼容性 </a> </li> <li> 25. <a href="http://hk.uwenku.com/question/p-hanxfdol-oz.html" target="_blank" title="SVG/VML瀏覽器的兼容性表"> SVG/VML瀏覽器的兼容性表 </a> </li> <li> 26. <a href="http://hk.uwenku.com/question/p-fcqvpiji-ub.html" target="_blank" title="Wicket JavaScript瀏覽器兼容性"> Wicket JavaScript瀏覽器兼容性 </a> </li> <li> 27. <a href="http://hk.uwenku.com/question/p-zrbsppnt-tc.html" target="_blank" title="的JavaScript瀏覽器兼容性"> 的JavaScript瀏覽器兼容性 </a> </li> <li> 28. <a href="http://hk.uwenku.com/question/p-zysttczk-ob.html" target="_blank" title="IE8的瀏覽器兼容性問題"> IE8的瀏覽器兼容性問題 </a> </li> <li> 29. <a href="http://hk.uwenku.com/question/p-hdymkttc-xx.html" target="_blank" title="分辨率和瀏覽器兼容性"> 分辨率和瀏覽器兼容性 </a> </li> <li> 30. <a href="http://hk.uwenku.com/question/p-vbjnqlnk-zb.html" target="_blank" title="dojo跨瀏覽器兼容性"> dojo跨瀏覽器兼容性 </a> </li> </ul> </div> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-6208739752673518" data-ad-slot="1575177025"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="padding-top-10"></div> </div> </div> <script type="text/javascript" src="http://img.uwenku.com/uwenku/script/side.js?t=1644592048261"></script> <script type="text/javascript" src="http://img.uwenku.com/uwenku/plugin/highlight/highlight.pack.js"></script> <link href="http://img.uwenku.com/uwenku/plugin/highlight/styles/docco.css" media="screen" rel="stylesheet" type="text/css" /> <script type="text/javascript"> $('pre').each(function(i, e) { hljs.highlightBlock(e, "<span class='indent'> </span>", false) }); </script> <div class="col-lg-3 col-md-4 col-sm-5"> <div id="rightTop"> <div class="row"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6208739752673518" data-ad-slot="5415218910" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="row sidebar panel panel-default"> <div class="panel-heading font-bold"> 最新問題 </div> <div class="m-b-sm m-t-sm clearfix"> <ul class="side_article_list"> <li class="side_article_list_item"> 1. <a href="http://hk.uwenku.com/question/p-wszjnyuy-d.html" target="_blank" title="標籤變量循環"> 標籤變量循環 </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.uwenku.com/question/p-qyjrkuqo-cc.html" target="_blank" title="是不是將屬性設置爲等於有效的HTML值?"> 是不是將屬性設置爲等於有效的HTML值? </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.uwenku.com/question/p-rcmymcwv-bmd.html" target="_blank" title="如何實現全局密鑰監聽器?"> 如何實現全局密鑰監聽器? </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.uwenku.com/question/p-oluxqrwc-bkr.html" target="_blank" title="Laravel 5廣播事件到通配符通道使用節點和Laravel ECHO-服務器"> Laravel 5廣播事件到通配符通道使用節點和Laravel ECHO-服務器 </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.uwenku.com/question/p-pwfrxlsb-bdt.html" target="_blank" title="選擇默認類型要下載"> 選擇默認類型要下載 </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.uwenku.com/question/p-ncdnnkbo-bep.html" target="_blank" title="如何使用正確的列名將文本分隔爲列"> 如何使用正確的列名將文本分隔爲列 </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.uwenku.com/question/p-hctoaoej-beg.html" target="_blank" title="Inno Setup [設置] 64bit條件"> Inno Setup [設置] 64bit條件 </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.uwenku.com/question/p-mkycehfm-bgc.html" target="_blank" title="Linux上的Swift Objective-C互操作性錯誤:找不到'Foundation/Foundation.h'文件"> Linux上的Swift Objective-C互操作性錯誤:找不到'Foundation/Foundation.h'文件 </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.uwenku.com/question/p-tlgbplif-bev.html" target="_blank" title="的SyntaxError 255李斯特"> 的SyntaxError 255李斯特 </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.uwenku.com/question/p-ozjhreyu-bgs.html" target="_blank" title="如何在JAVA中使用apache POI在Excel中設置/取消設置列過濾器的值?"> 如何在JAVA中使用apache POI在Excel中設置/取消設置列過濾器的值? </a> </li> </ul> </div> </div> </div> <p class="article-nav-bar"></p> <div class="row sidebar article-nav"> <div class="row box_white visible-sm visible-md visible-lg margin-zero"> <div class="top"> <h3 class="title"><i class="glyphicon glyphicon-th-list"></i> 相關問題</h3> </div> <div class="article-relative-content"> <ul class="side_article_list"> <li class="side_article_list_item"> 1. <a href="http://hk.uwenku.com/question/p-xucdcmiq-rx.html" target="_blank" title="IE瀏覽器兼容瀏覽器兼容性問題/ Firefox"> IE瀏覽器兼容瀏覽器兼容性問題/ Firefox </a> </li> <li class="side_article_list_item"> 2. <a href="http://hk.uwenku.com/question/p-raidkqgl-bz.html" target="_blank" title="CSS瀏覽器兼容性"> CSS瀏覽器兼容性 </a> </li> <li class="side_article_list_item"> 3. <a href="http://hk.uwenku.com/question/p-bjnqpzja-sm.html" target="_blank" title="WebGL瀏覽器兼容性"> WebGL瀏覽器兼容性 </a> </li> <li class="side_article_list_item"> 4. <a href="http://hk.uwenku.com/question/p-cqlvrubl-zo.html" target="_blank" title="瀏覽器兼容性"> 瀏覽器兼容性 </a> </li> <li class="side_article_list_item"> 5. <a href="http://hk.uwenku.com/question/p-fzvblkbx-bcu.html" target="_blank" title="CSS3瀏覽器兼容性"> CSS3瀏覽器兼容性 </a> </li> <li class="side_article_list_item"> 6. <a href="http://hk.uwenku.com/question/p-vcwhcrzh-oq.html" target="_blank" title="瀏覽器兼容性"> 瀏覽器兼容性 </a> </li> <li class="side_article_list_item"> 7. <a href="http://hk.uwenku.com/question/p-bvhlucis-bmk.html" target="_blank" title="跨瀏覽器兼容性"> 跨瀏覽器兼容性 </a> </li> <li class="side_article_list_item"> 8. <a href="http://hk.uwenku.com/question/p-mtruyhth-uq.html" target="_blank" title="Ajax瀏覽器兼容性"> Ajax瀏覽器兼容性 </a> </li> <li class="side_article_list_item"> 9. <a href="http://hk.uwenku.com/question/p-rzuzjzsz-vd.html" target="_blank" title="ASP.Net瀏覽器兼容性"> ASP.Net瀏覽器兼容性 </a> </li> <li class="side_article_list_item"> 10. <a href="http://hk.uwenku.com/question/p-acrubfoc-he.html" target="_blank" title="量角器是否具有IE 9瀏覽器兼容性?"> 量角器是否具有IE 9瀏覽器兼容性? </a> </li> </ul> </div> </div> </div> </div> </div> </div> </div><!-- wrap end--> <!-- footer --> <footer id="footer"> <div class="bg-simple lt"> <div class="container"> <div class="row padder-v m-t"> <div class="col-xs-8"> <ul class="list-inline"> <li><a href="http://hk.uwenku.com/contact">聯系我們</a></li> <li>© 2020 HK.UWENKU.COM</li> <li><a target="_blank" href="https://beian.miit.gov.cn/">沪ICP备13005482号-4</a></li> <li><script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1280101193&web_id=1280101193"></script></li> <li><a href="http://www.uwenku.com/" target="_blank" title="优文库">简体中文</a></li> <li><a href="http://hk.uwenku.com/" target="_blank" title="優文庫">繁體中文</a></li> <li><a href="http://ru.uwenku.com/" target="_blank" title="поле вопросов и ответов">Русский</a></li> <li><a href="http://de.uwenku.com/" target="_blank" title="Frage - und - antwort - Park">Deutsch</a></li> <li><a href="http://es.uwenku.com/" target="_blank" title="Preguntas y respuestas">Español</a></li> <li><a href="http://hi.uwenku.com/" target="_blank" title="कार्यक्रम प्रश्न और उत्तर पार्क">हिन्दी</a></li> <li><a href="http://it.uwenku.com/" target="_blank" title="IL Programma di chiedere Park">Italiano</a></li> <li><a href="http://ja.uwenku.com/" target="_blank" title="プログラム問答園区">日本語</a></li> <li><a href="http://ko.uwenku.com/" target="_blank" title="프로그램 문답 단지">한국어</a></li> <li><a href="http://pl.uwenku.com/" target="_blank" title="program o park">Polski</a></li> <li><a href="http://tr.uwenku.com/" target="_blank" title="Program soru ve cevap parkı">Türkçe</a></li> <li><a href="http://vi.uwenku.com/" target="_blank" title="Đáp ứng viên">Tiếng Việt</a></li> <li><a href="http://fr.uwenku.com/" target="_blank" title="Programme interrogation Park">Française</a></li> </ul> </div> </div> </div> </div> </div> </footer> <!-- / footer --> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?f78a970f17b19a79fc477a3378096f29"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </body> </html>