image-set() = image-set( <image-set-option># )
<image-set-option> = [ <image> | <string> ] <resolution>
為不同的設(shè)備分配合適得圖像;
示例
div {
background-image: image-set( "test.png" 1x, "test-2x.png" 2x, "test-print.png" 600dpi );
}
上述代碼將會(huì)為普通屏幕使用 test.png,為高分屏使用 test-2x.png,如果更高的分辨率則使用 test-print.png,比如印刷。