开发者

In IE 7 background shift to 1 px top to but in FF it's ok?

开发者 https://www.devze.com 2022-12-28 08:58 出处:网络
In IE 7 background shift to 1 px top to but in FF it\'s ok? background: url(girl.jpg) top left repeat-x;

In IE 7 background shift to 1 px top to but in FF it's ok?

 background: url(girl.jpg) top left repeat-x;
 p开发者_开发百科osition: relative;
 top: 0px;color: #666;
 border-bottom-color: white;


I don't think this comes from the background image. Are you sure there is no transparent border, or other 1px shift elsewhere in the markup?


you can use this

      top:0px;
    *top:1px;

*background-position:0px 1px;
  • work only four IE7 so you can use this.

you can enter value according your design. in *top: px.


IE6 has bugs with positioning background on relative positioned elements. Is your document in standards mode? And try giving your element hasLayout e.g. with zoom: 1.

0

精彩评论

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

关注公众号