[英]iCheck Checkbox doesn't work on mobile
Hi have a login site . 嗨,有一个登录站点 。
It works fine on browser. 在浏览器上工作正常。 However, when I see it on the mobile phone, it doesn't show the checkbox.
但是,当我在手机上看到它时,它没有显示该复选框。
This is the script for iCheck checkbox. 这是iCheck复选框的脚本。 It show the raw checkbox on mobile, if I remove it.
如果我删除它,它会在移动设备上显示原始复选框。
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
Could you please take a look. 你能看看吗。 Thanks,
谢谢,
There was a mistake on css file (blue.css) for retina support. 支持视网膜的css文件(blue.css)出错。 the background-image link is broken.
背景图片链接已损坏。
background-image: url(blue.png);
Should be right in blue.css 应该在blue.css中正确
/* Retina support */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-moz-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio: 1.5) {
.icheckbox_square-blue,
.iradio_square-blue {
background-image: url(blue.png);
-webkit-background-size: 240px 24px;
background-size: 240px 24px;
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.