码迷,mamicode.com
首页 > 其他好文 > 详细

icheck的使用

时间:2016-11-25 12:33:27      阅读:612      评论:0      收藏:0      [点我收藏+]

标签:文件   css   htm   document   styles   github   icheck   sheet   cti   

icheck 它主要针对的是checkbox和radio 的样式点击切换的效果,非常的方面切美观。

1、下载icheck包 地址:https://github.com/fronteed/iCheck

2、引用iCheck.js 和复制flat文件,里面有所以的样式  css.然后在html页面中·,引用你所想要引用颜色。<link rel="stylesheet" type="text/css" href="icheck/flat/blue.css">

3、加入js内容,

<script>
$(document).ready(function(){
$(‘.index_radio input‘).iCheck({
checkboxClass: ‘icheckbox_flat-blue‘,
radioClass: ‘iradio_flat-blue‘
});
})
</script>

4、注意:如果一一个页面需引用多个 icheck的样式。那么他们的input的name值一定要不一样,比如:第一组的name 为opp1.那么第二组就要为opp2. 不然,会默认为同一组的

icheck的使用

标签:文件   css   htm   document   styles   github   icheck   sheet   cti   

原文地址:http://www.cnblogs.com/qiaomian/p/6100829.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!