clip属性,截取你想要显示的图片
img {
position: absolute;
clip: rect(0px,60px,200px,0px);
}
你有兴趣可以看
https://tympanus.net/codrops/2013/01/16/understanding-the-css-clip-property/
img {
position: absolute;
clip: rect(0px,60px,200px,0px);
}
你有兴趣可以看
https://tympanus.net/codrops/2013/01/16/understanding-the-css-clip-property/