css调试,跨浏览器兼容性

时间:2010-01-11 12:19:26

标签: css layout html cross-browser

有两个<div></div>标签。当使用Firefox浏览它时,效果是可取的。 .steven.john之间存在差距。然而,当使用IE浏览它时,效果是不希望的; .Steven.john连在一起(没有差距)。如何解决这个问题呢?

.steven{
     position: relative;
     width: 620px;
     left: 55px;
     float: left;

     }

    .john {
     position: relative;
     width: 270px;
     right: 35px;
     float: right;


    }

1 个答案:

答案 0 :(得分:0)

您使用过Reset CSS吗?

不同的浏览器在不同的元素上显示不同的默认值。

相关问题