简体   繁体   English

IE11 CSS bug,带有clear:right-如何解决?

[英]IE11 CSS bug with clear:right - how to workaround?

I'm looking for a workaround for this odd IE bug (present in IE11, haven't tested other versions, works perfectly in Chrome/FireFox). 我正在寻找解决此奇怪的IE错误的方法(出现在IE11中,尚未测试其他版本,可以在Chrome / FireFox中完美运行)。

CSS clear:right; CSS clear:right; doesn't work as expected with rtl language even though clear:left; 即使clear:left;不能与rtl语言一起使用。 for an ltr language works without problems. LTR语言可以正常工作。

It's best to show an example so I'll attach screen shots. 最好显示一个示例,以便我附上屏幕快照。 英文版-没问题希伯来语版本-查看错误Chrome和FireFox表现不错

I've noticed problems similar to this one all around so any general workaround would be most welcome. 我注意到所有与此类似的问题,因此任何一般的解决方法都将受到欢迎。 I'm not trying to solve it only specifically for this page. 我不是要专门针对此页面来解决它。 Thanks 谢谢

The English page: http://colnect.com/en/coins/coin/48962-50_Dollars_XXVIII_Olympic_Games_Athens_2004-Numismatic_Product-Bimetallic_Silver_-_Gold-Australia 英文页面: http : //colnect.com/en/coins/coin/48962-50_Dollars_XXVIII_Olympic_Games_Athens_2004-Numismatic_Product-Bimetallic_Silver_-_Gold-Australia

The Hebrew page: http://colnect.com/he/coins/coin/48962-50_Dollars_XXVIII_Olympic_Games_Athens_2004-Numismatic_Product-Bimetallic_Silver_-_Gold-%D7%90%D7%95%D7%A1%D7%98%D7%A8%D7%9C%D7%99%D7%94 希伯来语页面: http : //colnect.com/he/coins/coin/48962-50_Dollars_XXVIII_Olympic_Games_Athens_2004-Numismatic_Product-Bimetallic_Silver_-_Gold-%D7%90%D7%95%D7%A1%D7%98%D7%A8%D7 %9C%D7%99%D7%94

For lack of an IE 11 I can only test this in IE 10, but the problem presents there as well. 由于缺少IE 11,我只能在IE 10中对此进行测试,但是问题也同样存在。

Adding width:100% and overflow:hidden to the .ibox element does seem to fix it – then it won't need clearing any more, because it will go underneath the floated content before it since there is no place for it beside it any more. .ibox元素中添加width:100%overflow:hidden确实可以解决此问题–然后它不需要清除任何内容,因为它会在浮动内容之前进入浮动内容的下方,因为它旁边无处可放更多。

See if that's a workaround you can make use of. 看看这是您可以利用的解决方法。

  1. Could you please create a reduced example demonstrating the problem? 您能否创建一个简化的示例来说明问题?

  2. I checked the code and there is no float: right box before (prior in source code) to the cleared <div class="ibox" xid="48962"> . 我检查了代码,没有float: right在清除的<div class="ibox" xid="48962">之前(在源代码中)是float: right框。

Sorry! 抱歉! there are! 有! .i_d dt {float: right} are floated right. .i_d dt {float:right}向右浮动。 So you are quite possibly right with your query and claims. 因此,您的查询和声明很可能是正确的。

  1. Note that you are using invalid attributes in your XHTML 1.1 page. 请注意,您在XHTML 1.1页面中使用的属性无效。

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

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