开发者

CSS Sprites not showing properly in IE7

开发者 https://www.devze.com 2023-03-30 16:10 出处:网络
I\'m using a css sprite based navigation for wordpress, the page can b开发者_Go百科e seen here:http://asvpart.com/new/

I'm using a css sprite based navigation for wordpress, the page can b开发者_Go百科e seen here: http://asvpart.com/new/

There is an issue in IE 7 though, the images are showing greater dimensions that what are defined, both horizontally and vertically. Is this a background position issue in IE 7?


In ie7.css, you need to from #menu ul li a remove this:

padding:1.5em 2em 1em

That is the cause of the increased size of the li. Adding padding increases the size of an element.

0

精彩评论

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