网站不会在Firefox中显示,但在所有其他浏览器中都可以

时间:2012-07-30 20:01:24

标签: html css firefox internet-explorer-9

由于某些原因,我的网页在Firefox中无法正确显示。它在IE9,Safari,chrome中正确显示。

在Firefox中,如果我缩小或在布局中更改。但随后YouTube视频开始玷污和像素化。我让一位朋友在他们的计算机上检查Firefox,同样的事情发生了。

http://wwww.streetstyles4all.co.uk/images/screen_shot.jpg

从左上角拍摄的屏幕显示了页面的加载方式。我放大或缩小后右上方显示,左上方显示我向上和向下滚动。

HTML:

相关部分的HTML是:

 <div id="homewallcontainer">

                <div id="homesidenavcontainer">

                <script type="text/javascript" src="http://forms.aweber.com/form/23/850302323.js"></script>
                </div>

                <div id="newsletterblurb">
                <p>
                Learn everything you need to get yourself going in the world of street dance, tips, facts, what to wear, music, videos and more.  Just fill in the form above - simple!
                </p>
                </div>  

                <div id="contentcontainerhome2">
                   <h1>Street Styles 4 All is the place to be for street dance! With classes, DVD's that are sold worlwide, dancers for hire, streetwear...find out why you should choose Street Styles 4 All:
                   </h1>
                            <div id="homess4atrailer">
        <iframe width="466" height="302" src="http://www.youtube.com/embed/QyhgZ6I_DHo" frameborder="0" allowfullscreen></iframe>
        </div>


           </div>


    </div>

CSS是:

#homewallcontainer {
background: url("images/wall.png") repeat scroll 0 0 transparent;
height: 542px;
margin-top: -1px;
width: 960px;
}

#homesidenavcontainer {
float: left;
margin-left: 41px;
margin-top: 110px;
width: 253px;
}

#homesidenavcontainer {
float: left;
margin-left: 41px;
margin-top: 110px;
width: 253px;
}

#contentcontainerhome2 {
float: right;
margin-right: 17px;
margin-top: 46px;
width: 528px;
}

#homess4atrailer {
margin-left: 56px;
padding: 38px 0 10px;
}

1 个答案:

答案 0 :(得分:1)

我在你的html片段中发现了2个错误。最后一个额外的</div>,有一个奇怪的'和iframe中的allowfullscreen无效。您是否已尝试过validating您的代码?