Home > front end >  For the processing of the picture two plans
For the processing of the picture two plans

Time:10-14

1, insert images (img)
2, the background background image -
Img and background image difference:
1. Img semantic is higher, is conducive to SEO
2. Img is inline blocks (can show side by side, set wide high), on a web page to occupy space, does not occupy a space background
3. The img can be controlled through the box model, background can through the background - position, background, origin, background - the size...
Figure 4. Background images can be used to elves (Sprite), namely a larger image through the background - position to set the location
5. Img tags there is a small bug, img below there is a small white edge, usually to img set display: block to solve this white
  • Related