Questions about image definition and image definition
Today, I tested a BUG that I suggested to modify, saying that the icons in the title bar are not too clear,
There is a school logo for South Polytechnic in the title bar, because the overall height of the title bar is 36PX,
I asked the artist to give me a 32x32 transparent background South Polytechnic icon. The result is unclear,
I used the original X opaque original image. By setting the width and height attributes of IMG,
Display it as the size of 32x32. It is clearer than using 32x32 directly,
However, this file is too large to display such a large image on the webpage,
So I used PS to adjust it to X and set the background color to transparent,
After the project is put in, the display effect is much better than the previous 32x32,
Summary: if you use a 32x32 image directly, some details will be compressed, so it is not clear,
By setting the height and width attribute to control the size of a 4-fold image, the image definition can be effectively preserved, and the image will not be too large.