![](/img/trans.png)
[英]Elements rendering differently in Chrome/Firefox and Internet Explorer
[英]Internet Explorer and Firefox alignment elements differently on site
當我的網站在Firefox中呈現時,“Find A Maths Tutor”文本正好在“Private Maths Tutor”文本的上方:
這就是我想要的。
當在Internet Explorer中呈現相同的頁面時,“查找數學導師”文本位於“私人數學導師”的左側,但位於左側:
如何在Internet Explorer中以與在Firefox中相同的方式使用“查找數學教師”元素?
在您的標記中有doctype之前的注釋:
<!--- start of common-head-and-right.php -->
這會導致Internet Explorer以怪異模式呈現您的網站,其行為類似於IE5。 刪除注釋, <!doctype>
必須是標記中的第一件事。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.