In IE 7 background shift to 1 px top to but in FF it's ok?
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
.
精彩评论