css精灵图
2020-05-25 本文已影响0人
simplerandom
图片默认从目标元素左上角开始对齐
background-repeat: no-repeat;
background: url("https://cdn.pixabay.com/photo/2020/02/25/19/16/stawberry-4879794_960_720.jpg");
background-position: -450px 300px;
图片默认从目标元素左上角开始对齐
background-repeat: no-repeat;
background: url("https://cdn.pixabay.com/photo/2020/02/25/19/16/stawberry-4879794_960_720.jpg");
background-position: -450px 300px;