Home  >  Article  >  Web Front-end  >  Why do so many web pages use one large picture (including all the small icons on the page) as the icon? _html/css_WEB-ITnose

Why do so many web pages use one large picture (including all the small icons on the page) as the icon? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:51:351402browse

I found that many web pages use large images to control the position through CSS to display only the small icons that need to be used. Why do you do this? Wouldn’t it be more troublesome when positioning the icons?


Reply to discussion (solution)

A picture is a file
Each file accessed by the browser is a link (one page is accessed at the same time There is an upper limit for links), and each link has performance and traffic overhead
,
. In addition, there are tools for merging images and generating corresponding css code. Of course it is troublesome to do it yourself
Query keywords CSS Sprites

Reduce the number of requests and reduce the pressure on the server

A picture is a file
Each file accessed by the browser is a link (there is an upper limit for links accessed at the same time on a page) , and each link has performance and traffic overhead
,
. In addition, there are tools to merge images and generate corresponding css code. Of course it is troublesome to do it yourself
Query keyword CSS Sprites



Yeah, okay, I see. Thank you very much
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn