icheck的使用

1.先引入jQuery(必须是jQuery);

2.引入icheck.js;

<link rel="stylesheet" href="flat/blue.css">


   <script src="js/jquery.js"></script>
    <script src="js/jquery.icheck.js"></script>
</head>
<body>
<input type="checkbox"/>
 <input type="radio" name="sex" value="" checked="checked">
<input type="radio" name="sex" value="">

<script>
    $(document).ready(function(){
        $('input').iCheck({
            checkboxClass: 'icheckbox_flat-blue',  // 注意squareblue的对应关系
            radioClass: 'iradio_flat-blue'
        });
    });
</script>
</body>

猜你喜欢

转载自blog.csdn.net/weixin_37380784/article/details/80579385