超级奇怪的FireFox问题/ Bug?请帮忙 [英] Super wierd FireFox problem/Bug ? Please help
问题描述
我正在构建一个使用div-tags创建的布局的网站。它们具有固定宽度,向左浮动,并且内嵌显示。当其中一个div包含一个select元素时,最右边的div会在没有明显原因的情况下向下浮动,但是当select元素消失时它们都会按预期方式对齐。没有css适用于选择元素。
概率图片:http://sdc.novasol.com/site/nov/TMP/withSelectBoxes.gif
图片预期:http://sdc.novasol.com/site/nov/TMP/noSelectBoxes.gif
I''m constructing a website with a layout created with div-tags. They have a fixed width, float left, and display inline. When one of the div''s contain a select-element the right-most div floats down for no apparent reason, but when the select-elements are gone they all align as expected. No css apply to the select-elements.
image of prob.: http://sdc.novasol.com/site/nov/TMP/withSelectBoxes.gif
image of expected: http://sdc.novasol.com/site/nov/TMP/noSelectBoxes.gif
推荐答案
你的链接不起作用。
如果宽度应该是html或css风格,这样的事情将永远不会起作用:
class =" leftModuleArea sideModuleArea width190"
没有这样的东西:
< spacer width =" 1px" height =" 1px">< / spacer>
我不知道你是否误解了如何应用CSS样式。此外,你有30个html错误。
你也有很多关于Firefox修复的评论,这是不寻常的。通常IE需要黑客而不是FF。
您使用的是哪种doctype?
Things like this will never work if width is supposed to be a html or css style:
class="leftModuleArea sideModuleArea width190"
There is no such thing as this:
<spacer width="1px" height="1px"></spacer>
I don''t know if you misunderstand how to apply css styling or not. In addition, you have 30 html errors.
You also have a lot of comments about Firefox fixes which is unusual. It is usually IE that needs hacking and not FF.
Which doctype are you using?
现在链接工作 - 某些服务器同步错误。
我很抱歉但是 - 这是一个非常好的有效的方法来应用CSS。只要我确保不同的类声明没有重叠属性就没有问题 - 例如,width190类不直接影响div,而是影响div的内容。这三个类中的每一个都满足不同的目的。关于:< spacer width =" 1px"高度= QUOT; 1px的">< /间隔件> - 它是一个黑客,它可以防止IE中不受欢迎的行为 - 完全与我描述的问题无关。
关于我的html错误 - 两者都与问题无关,而且非常正式不实用。
我正在使用
Links work now - some server syncro error.
I''m sorry but yes - it''s a perfectly good and valid way to apply css. As long as I ensure that the different class declarations don''t have overlapping properties there is no problems - for instance the width190 class does not affect the div directly, but the contents of it. each of the three classes fullfill different purposes. regarding:<spacer width="1px" height="1px"></spacer> - it''s a hack and it prevents an undesired behavior in IE - completly unrelated to the problem I''m describing.
Regarding my html errors - neither are related to the problem and are merly formal not practical.
I''m using
这篇关于超级奇怪的FireFox问题/ Bug?请帮忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!