.box{width:375px;background-image:url('img_2x.png')}@media only screen(device-width:375px) and (-webkit-min-device-pixel-ratio:3){.box:{width:125px;background-image:url('img_3x.png')}}
移动端通过css适配不同dpr的手机样式写法示例:.box{ width:375px; background-image:url('img_2x.png')}@media only screen and (-webkit-min-device-pixel-ratio:3){ .box:{ width:125px; background-image:url('img_3x.png...