简体   繁体   English

Firefox和IE上的负边距问题

[英]Issue with negative margin on Firefox and IE

I have tried every possible resolution on this thing. 我已经尝试过所有可能的解决方法。 No luck still, I am having a problem with negative margins on IE and FF. 仍然没有运气,我在IE和FF上出现负利润问题。

I just need to set the negative margin on an item but it only affects the element and leaves its children behind. 我只需要在一个项目上设置负边距,但它只会影响元素并将其子元素留在后面。

Check out the effect here. 在这里查看效果。 http://s-4-k.co.uk/s4k2/ http://s-4-k.co.uk/s4k2/

Can someone help me out please. 有人可以帮我吗。 I am desperate. 我很绝望。

请对上层div使用float none,它将使所有浏览器的行为相同,然后根据需要将margin设置为负数。

.row-fluid .span12 { float: none; }

添加bottom: -20px // replace this value with yours对我bottom: -20px // replace this value with yours

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

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