當我在父元素中應用-3px的負邊距頂部時,所有子元素都向右移動(在Firefox和IE8中),但在Chrome中看起來非常好(元素被居中)。Firefox中的負頂部邊距將元素向右移動
什麼可能導致這種情況?
<div class="menu-tab">
<div class="folder-tab">
<span class="normal-small-text">Ingresar<i class="icon-chevron-down icon-white"></i></span>
</div>
</div>
的上邊距是在類.menu-tab
這是在Chrome
和Firefox
我們可能需要對問題的代碼/工作的例子,能夠幫助你。 – Jeroen 2012-03-17 19:09:50
看看這個http://coding.smashingmagazine.com/2009/07/27/the-definitive-guide-to-using-negative-margins/ – 2012-03-17 19:12:05
你必須發佈你的「菜單標籤」,「文件夾選項卡」和其他CSS代碼中提到的代碼 – 2012-03-17 19:13:19