1
我试图使用retina.js v2.0来交换图像,但它不工作,我不知道为什么。我也在开发人员工具中检查它,但没有任何错误。你能帮助我吗?可能是什么问题?retina.js v2.0不适用于图像
HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</head>
<body>
<img src="images/logo.png" data-rjs="2" alt="Logo">
<script type="text/javascript" src="retina.min.js"></script>
</body>
</html>