文件名称:jQuery.imgx:在桌面移动设备上提供高分辨率图像的扩展
文件大小:2KB
文件格式:ZIP
更新时间:2024-07-03 03:22:22
JavaScript
jQuery.imgx 用于在桌面和移动设备上提供高分辨率图像的轻量级 jQuery 扩展。 与@2x, @3x, and @4x图像变体兼容,使用 Apple 推荐的高分辨率图形。 安装 在 HTML 文档的<head>中包含最新版本的和jQuery.imgx.js : < script src =" jQuery.min.js " > </ script > < script src =" jQuery.imgx.js " > </ script > 如何使用 引用imgx()方法并在与原始源相同的目录中包含@2x, @3x, or @4x图像变体。 该脚本将根据显示器检测到的像素密度自动加载适当的图像。 查看现场演示: jQuery $ ( function ( ) { // All Images $ ( 'img' ) . imgx ( ) ;
【文件预览】:
jQuery.imgx-master
----jQuery.imgx.js(2KB)
----README.md(2KB)