你希望你知道之前,你花了几个小时试图修复IE6的错误 [英] What do you wish you knew before you spent hours trying to fix a bug in IE6

查看:100
本文介绍了你希望你知道之前,你花了几个小时试图修复IE6的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Mine必须是浮动和边缘错误...

Mine would have to be the float and margin bugs...

如果你浮动一个元素,然后指定一个边缘,它会使边缘加倍。

If you float an element, and then specify a margin for it, it will double the margin.

这个解决方案是向元素中添加 display:inline 。这将停止双边距,所有其他浏览器将忽略它,因为只有块级对象可以浮动。

The solution to this is to add display: inline to the element. This will stop the double margin, and all other browsers will ignore it because only block level objects can be floated.

推荐答案

我知道我会花几个小时试图修复IE 6中的bug一遍又一遍多年的结束,我真的会更快乐提供披萨。

I wish I'd known that I'd be spending hours trying to fix a bug in IE 6 over and over again for years on end and I really would have been happier delivering pizza.

这篇关于你希望你知道之前,你花了几个小时试图修复IE6的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆