简体   繁体   English

在Chrome和IE上看起来不错…在Firefox上不好?

[英]Looks good on Chrome & IE…Bad on Firefox?

I know its my fault. 我知道是我的错 I know by the way the height is working correctly with the packages and that I offset the problem (just to get a design done) by using a bunch of breaks (br tags) lol. 我知道高度可以与包装一起正常工作,并且我通过使用一堆中断(br标签)来解决了这个问题(只是为了完成设计)。

Anyways, the site looks exactly how I want it to in chrome (minus the breaks (br tags) hack)...In firefox, its a mess. 无论如何,该网站看起来完全像我想要的那样(在chrome中(减去中断(br标签)hack))...在firefox中,情况一团糟。 It actually looks good on IE...but not functional -.- 实际上在IE上看起来不错...但是不起作用-.-

Will take me a good 2-3 hours of tweaking and changing tid bits of the CSS. 我将花费2-3个小时来调整和更改CSS的tid位。 Would take a CSS expert 5 minutes, so I came to ask what the heck is going on? 需要5分钟的CSS专家,所以我来问到底是怎么回事? Is chrome just really forgiving of my bad coding or is firefox confused? chrome是真的可以原谅我的错误编码吗,还是Firefox感到困惑?

My main concern right now is getting everything to look the same, and properly (none of those breaks (br tags) hacks). 我现在主要关心的是使所有内容看起来都一样,并且正确(这些中断(br标签)都没有被黑客入侵)。 Then I will focus on getting IE functional later. 然后,我将在以后着重介绍IE功能。

Here is the site. 这是网站。

To fix the Payment Section in firefox i have modified your html as follows- 要修复Firefox中的付款部分,我已将您的html修改如下:

<div class="Savings0 custom-radio-Length"><label style="border:white;">&nbsp;</label></div>
<div class="Savings3 custom-radio-Length"><label style="border:white;">15% off Total <br/> Save $1.35</label></div>
<div class="Savings6 custom-radio-Length"><label style="border:white;">20% off Total <br/> Save $3.60</label></div>
<div class="Savings12 custom-radio-Length"><label style="border:white;">25% off Total <br/> Save $9.00</label></div>

After going through the validation as Sotiris suggested, I realized that having block elements in an inline element was causing firefox trouble. 在按照Sotiris的建议进行验证之后,我意识到在内联元素中包含块元素会引起Firefox的麻烦。

I had DIV's and H3's in label tags, which is why it got messed up. 我在标签标签中有DIV和H3,这就是为什么它弄乱了。 Weird that IE8, Chrome, Safari still displayed OK...But firefox got weird. 奇怪IE8,Chrome,Safari仍然显示OK ...但是firefox变得很奇怪。 I understand its valid for firefox to get weird because it was against the rules to do so, but it should be more forgiving about that. 我知道它对于Firefox变得怪异是有效的,因为这样做违反了规则,但是对此应该更加宽容。

I replaced using H3 with a span that had similar formatting that I wanted, and also replaced the DIVs I had as containers to inject HTML using javascript and instead just appended the HTML instead of looking for a DIV. 我用H3替换了具有所需格式的跨度,并且还替换了我作为容器使用DIV来使用javascript注入HTML,而是只附加了HTML而不是寻找DIV。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM