简体   繁体   中英

I need to change the images shape to trapezoid without cropping the image

 .Div { border: double; height: 400px; width: 325px; clip-path: polygon(0 13%, 100% 0, 100% 100%, 0 93%); } 
 <div class="Div"></div> 

.Div {
  border: double;
  height: 400px;
  width: 325px;
  clip-path: polygon(0 13%, 100% 0, 100% 100%, 0 93%);
  transform: rotate(90deg); 
}

you can create div tag and apply CSS on it

style="background-image:url('img.png');background-size:12px";

and Also can check the div style.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM