html - 对于不同的计算机,网站在 IE9 上呈现不同

标签 html css web internet-explorer-9

我最近建立了我的第一个发布网站。 www.adenschoolofmotoring.co.uk 问题是当我在 IE9 中查看它时出现渲染问题。

奇怪的是,我的家用笔记本电脑使用 IE9 并且可以正常渲染,但是当我使用带有相同浏览器的工作笔记本电脑时,IE9 渲染到处都是。

有人知道为什么会这样吗?如果我为 IE 编写一个单独的 CSS 脚本,我会遇到同样的问题吗?

干杯

最佳答案

在您的源代码中看到这段代码:

<html xmlns="http://www.w3.org/1999/xhtml">
<html>
    <link href="adencss.css" rel="stylesheet" type="text/css" />
    <div class="container">
        <div id="header">
            <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title> Home- Aden School of Motoring</title>

            <div id="logohead">
                <div id="imagelog">
                    <a href = "index.html"><img src="images/adentran.png" width="350" height="130"/></a>
                </div>

                <div id="slogan">
                    <img src="images/slogan.gif" width="200" height="70"/>
                </div>
            </div>

                <div id="navMenu">
                    <ul>
                        <li><a href="index.html">Home</a></li>
                        <li><a href="Prices.html">Prices</a></li>
                        <li><a href="Coverage.html">Coverage</a></li>
                        <li><a href="Contacts.html">Contacts</a></li>
                        <li><a href="#">Resources</a></li>
                    </ul>
                </div>


            </head>

            <div class="push"></div>
        </div>

        <body>
                <div id="homeblurb">

您不仅定义了 2 个 html 标签,而且还呈现了一个 <div><body> 之外标签。里面<div class='container'>你也有 head 标签。您可以尝试修复标记,看看是否有帮助。

关于html - 对于不同的计算机,网站在 IE9 上呈现不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11872660/

相关文章:

jquery - 带不透明度渐变的虚线下划线链接样式

css - 如何使列表看起来像 iphone 菜单

python - 如何使用mechanize进入yelp主页,找到搜索栏,输入 'Dinner'返回结果?

grails - 如何在gsp grails上对特定位置做出响应

读取托管在 Google Drive 上的 csv 文件

php - 如何将文本分成 php 中的下一行?

jquery - 如何获取指令内div的宽度?

javascript - 在排序数组中换行

html - 如何使页面在打印/跨多个浏览器时看起来很好

html - 无法让我的按钮居中