div维度不会在演算中发挥作用,只会在背景大小和您将要使用的部分中发挥作用。
假设您的背景宽度为1000像素,高度为500像素。
您将使用的图像的宽度和高度为80px。
背景大小:
x part 1000px / 80px = 12.5 ->> 1250%y part 500px / 80px = 6.25 ->> 625%background-size: 1250% 625%;
背景位置:
x-part 173px / 1000px = 0.173 ->> 17.3%y part 293px / 500px = 0.586 ->> 58.6%background-position: 17.3% 58.6%;



