CSS精灵导航
Is it possible to use three images in CSS sprite navigation?
This may be like this
My image http://img710.imageshack.us/img710/1429/navigx.jpg
If its possible what will be the result?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
是的,这是可能的。请参阅此处的示例
http://www.ehousestudio.com/blog/view/css_sprite_navigation_tutorial
Yes it is possible. See exaple here
http://www.ehousestudio.com/blog/view/css_sprite_navigation_tutorial
您可以在精灵中使用任意数量的图像,只需在 CSS 中移动位置即可:
只需计算出 px 距离以将精灵与元素正确对齐即可!
希望有帮助。
You can use any amount of images in a sprite, just move the positioning around in your CSS:
Just have to figure out the px distances to align the sprite to the element properly and you're away!
Hope that helps.
您可以在精灵中使用任意数量的图像。取决于您的要求。
You can use any number of images in a sprite. Depends on your requirement.
如果做得正确,结果将是:
alt text http://img710.imageshack.us /img710/1429/navigx.jpg
If done right this will be the result:
alt text http://img710.imageshack.us/img710/1429/navigx.jpg