简体   繁体   English

IE7 没有正确扩展 div

[英]IE7 not expanding div correctly

I am trying to get an expanding div to appear correctly in IE7.我试图让扩展的 div 在 IE7 中正确显示。 What is happening, is that the div will appear behind the button instead of pushing the div down to accommodate the textarea box.发生的事情是 div 将出现在按钮后面,而不是向下推 div 以容纳 textarea 框。 I have tried combinations of clear, position, but still the same.我已经尝试过清除 position 的组合,但仍然相同。 Can someone check my code and point out my error.有人可以检查我的代码并指出我的错误。 It works fine in IE8 & FF (Even IE6:-)) just 7 that is causing problem.它在 IE8 和 FF(甚至 IE6:-))中运行良好,只有 7 会导致问题。 Many thanks非常感谢

Demo code: http://jsfiddle.net/P5NQt/3/演示代码: http://jsfiddle.net/P5NQt/3/

Remove the height property from the .fb-input-right-conradio-back rule..fb-input-right-conradio-back规则中删除height属性。

demo at http://jsfiddle.net/gaby/2jBbu/演示http://jsfiddle.net/gaby/2jBbu/


Something else ( irrelevant to the original issue ), i would suggest you wrap the Yes text in a <label> with a for attribute, so the the whole text will act as a button for the checkbox..其他东西(与原始问题无关),我建议您将Yes文本包装在带有for属性的<label>中,因此整个文本将充当复选框的按钮。

<label for="messagetick2">Yes</label> 

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

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