我有以下代码:
<style>
.earthlogo{float: right; margin: -270px 0px 0px 0px;}
</style>
<div class="banner">
<p>ENVISIONING A BETTER TOMORROW</p>
<div class="earthlogo">
<img src="images/earth.png"/>
</div>
</div>
在这里,我将负边距应用于类earthlogo
及其在 firefox 和 google chrome 中的工作,但在 IE 7 中没有。所以这是在 CSS 中应用负边距的正确方法,如果它是正确的方法,那么为什么它在 IE 7 中不起作用。如何我可以修复 IE 问题吗?
谢谢