Home > front end >  About cutting and display images
About cutting and display images

Time:10-02

For example a figure of 300 wide high 400
50 cutting width to 100 from 150 100
Finish cutting figure in another container
Container for arbitrary wide high images show is fill the container, stretching
How to implement using div + CSS

CodePudding user response:

from already finished

CodePudding user response:

Div + CSS, do you want to the picture as the background - is the image?
Regardless of the image size to use
Background - size: 'width' px 'height' px;
Background - position: center;
background-repeat: no-repeat;
It is ok
  • Related