Html Can';无法在IE8中显示页脚图像?

Html Can';无法在IE8中显示页脚图像?,html,css,internet-explorer-8,Html,Css,Internet Explorer 8,我很难让Internet Explorer 8中的页脚图像显示在我的网站datingshotgun.com上。特别是“footer logo.png”,它被注入到标记中 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <title>DatingShotgun.com</title> <link rel="stylesheet" href

我很难让Internet Explorer 8中的页脚图像显示在我的网站datingshotgun.com上。特别是“footer logo.png”,它被注入到标记中

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>DatingShotgun.com</title>
    <link rel="stylesheet" href="css/styles.css"/>
    <!-- TypeKit -->
    <script type="text/javascript" src="http://use.typekit.com/mtx2hld.js"></script>
    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
    <!-- jQuery -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <!-- Custom Script -->
    <script src="js/scripts.js"></script>
    <!-- Google Analytics -->
    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-28481508-1']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();

    </script>   
</head>
<body>
    <header>
        <div class="logo">
            <h1>Dating Shotgun</h1>
        </div>
    </header>
    <div class="content">
        <div class="comingsoon"><p class="comingsoon_image"></p></div>
        <h1>Sign Up Now</h1>
        <p class="description">Be the first to receive a weekly dose of eligible<br />bachelors handpicked by two girls on the prowl.</p>
        <form action="index.php" method="post">
            <input type="email" class="email" name="email" maxlength="50" placeholder="Email Address">
            <input type="text" class="zip" name="zip" maxlength="5" placeholder="Zip Code">
            <input type="submit" class="submit" name="submit" value="Submit">
            <p class="errors">
            <?php 
                if (count($errors) != 0) { 
                    foreach($errors as $error) { 
                        echo $error . "<br />";
                    }
                } else {
                    echo $success; 
                }
            ?>
            </p>
        </form>
    </div>
    <footer>
        <p class="line"></p>
        <a href="http://flirtexting.com/" title="Flirtexting"></a>
    </footer>
</body>
</html>

它在ie9中显示ok,在版本9之前,ie不对未知元素inc应用任何样式,因此页脚将不会被视为块级元素,您需要对位于其中的p标记应用类和样式,以便按您的需要显示。

IE8和更低版本无法正确识别未知元素,这导致了各种各样的问题


要解决这个问题,您需要使用JavaScript修复程序,例如。

站点的HTML/CSS非常简单,您可以轻松地将其添加到问题中。这样做将有助于你的问题不被立即关闭。比这多一点信息将是有用的。-1哪个版本的IE?你在哪方面“有困难”?一些HTML和CSS供将来参考也不错。@thirtydot您可以在浏览器中轻松查看源代码,这有什么意义呢?@Matt一旦您解决了问题,将来访问网站的人将无法看到问题-只有在您解决问题后才看到问题。此外,如果你请求人们帮助,让他们更容易得到更好的结果
/*-----------------------------------------------------------------------------------*
Colors:
Grey: #CCCCCC; 
Pink: #ff0099;
*/
/*-----------------------------------------------------------------------------------*
/*CSS Reset
/*-----------------------------------------------------------------------------------*/
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
/*-----------------------------------------------------------------------------------*
/*General
/*-----------------------------------------------------------------------------------*/
* {
    padding: 0;
    margin: 0;
}
html {
    background-color: #FFFFFF;
    color: #CCCCCC;
    font-family: "proxima-nova", Helvetica, sans-serif;
}
body {

}
header {

}
.content {

}
/*-----------------------------------------------------------------------------------*
/*Logo
/*-----------------------------------------------------------------------------------*/
.logo {
    background: url('../images/datingshotgun-logo.png');
    width: 380px;
    height: 60px;
    display: block;
    text-indent:-9999px;
    margin: 60px auto 54px auto;
}
.logo h1 {
    display: block;
    text-indent:-9999px;
}
/*-----------------------------------------------------------------------------------*
/*Coming Soon
/*-----------------------------------------------------------------------------------*/
.comingsoon {
    /*background: url('../images/comingsoon.jpg') no-repeat;
        width: 1020px;
        height: 67px;
        margin: 0 auto 0 auto;*/
    border-top: 1px solid #CCCCCC;
}
.comingsoon_image {
    background: url('../images/comingsoon.png');
    width: 115px;
    height: 12px;
    margin: -6px auto 0 auto;
}
/*-----------------------------------------------------------------------------------*
/*Sign Up Now
/*-----------------------------------------------------------------------------------*/
h1 {
    font-size: 18px;
    color: #000000;
    text-align: center;
    margin: 45px 0 18px 0;
    text-transform: uppercase;
}
.description {
    font-size: 14px;
    text-align: center;
    font-family: "ff-tisa-web-pro", Georgia, serif;
    line-height: 1.25em;
    color: #999999;
}
/*-----------------------------------------------------------------------------------*
/*Form
/*-----------------------------------------------------------------------------------*/
form {
    width: 410px;
    height: 35px;
    margin: 17px auto 40px auto;
    color: #999999;
}
input {
    font-size: 13px;
    float: left;
    margin-right: 5px;
    line-height: 2.5em;
    margin-bottom: 5px;
}
input:focus {
    outline: none;
}
.email {
    width: 186px;
    height: 33px;
    padding-left: 10px;
}
.zip {
    width: 77px;
    height: 33px;
    padding-left: 10px;
}
.email,.zip,.submit {
    border: 1px solid #CCCCCC;
}
.email:focus,.zip:focus {
    border: 1px solid #8C8C8C;
    background: url('../images/topfade.gif') repeat-x;
}
.submit {
    width: 89px;
    height: 35px;
    background-color: #CCCCCC;
    color: #FFFFFF;
    font-size: 13px;
    background: url('../images/submit.png') repeat-x;
}
.submit:active {
    color: #8C8C8C;
}
.errors {
    color: #ff0099;
    margin: 5px auto 0 auto;
    width: 400px;
    height: 50px;
    text-align: center;
    font-size: 12px;
}
/*-----------------------------------------------------------------------------------*
/*Footer
/*-----------------------------------------------------------------------------------*/
.line {
    background: url('../images/line.png');
    width: 460px;
    height: 1px;
    margin: 0 auto 23px auto;
}
footer {
    display: block;
    height: 100%;
}
footer a { 
    background: url('../images/flirt-logo.png');
    width: 120px;
    height: 43px;
    margin: 0 auto;
    cursor: pointer;
    display: block;
}