开发者

css debugging, cross-browser compatibility

开发者 https://www.devze.com 2022-12-15 21:03 出处:网络
There are two <div></div> tags. When it is browsed using Firefox, the effect is desirable. There is a gap between .steven and .john. However when it is browsed using IE, the effect is unde

There are two <div></div> tags. When it is browsed using Firefox, the effect is desirable. There is a gap between .steven and .john. However when it is browsed using IE, the effect is undesirable; .Steven and .john are connected together(There is no gap). How to solve this problem?

.steven{
     position: relative;
     width: 620px;
     left: 55px;
  开发者_Python百科   float: left;

     }

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


    }


Have you used a Reset CSS?

Different browsers have different defaults for display on different elements.

0

精彩评论

暂无评论...
验证码 换一张
取 消