【发布时间】:2012-07-29 10:41:47
【问题描述】:
由于某种原因,我的网页在 Firefox 14.0.1 版中无法正确显示。在 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;
}
【问题讨论】:
-
嗯,这就是网站的行为方式。对不起,但这是事实。 “如果我缩小或布局发生变化。但随后 YouTube 视频开始涂抹和像素化”这是 youtube 的事情,与 CSS 无关。
-
谢谢帕尼克。我明白。你能解释一下布局问题吗?你会把它归结为网站的行为方式吗?
-
谢谢,但在 firfox 上,标准页面加载会产生错误,并且只有在我调整页面大小时,页面才会看起来像预期的那样。如果你去 firfox 并重新加载页面,你会看到有几个框不在它们应该在的位置 - 令人沮丧!