TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Google search PNG question

2 pointsby ParameterOneabout 8 years ago
On a Google search results page in developer tools it has this .png file (www.google.com&#x2F;images&#x2F;nav_logo242.png)<p>And I have been wondering two things. 1. how do they use different parts of a single png in different parts of the web page? And does the checkered background of the png mean it&#x27;s transparent?

2 comments

Safety1stClydeabout 8 years ago
This is a CSS sprite.<p>See <a href="https:&#x2F;&#x2F;www.w3schools.com&#x2F;Css&#x2F;css_image_sprites.asp" rel="nofollow">https:&#x2F;&#x2F;www.w3schools.com&#x2F;Css&#x2F;css_image_sprites.asp</a>
评论 #14094814 未加载
slaterabout 8 years ago
That link doesn&#x27;t work for me, but:<p>1. CSS&#x27;s background-position, probably.<p>2. Dependent on your browser; if you&#x27;re using Google Chrome: Yes.
评论 #14094646 未加载