本文实例为大家分享了bootstrap icheck选择框插件,供大家参考,具体内容如下
icheck官网:nofollow" target="_blank" href="http://www.bootcss.com/p/icheck/#skin-square">http://www.bootcss.com/p/icheck/#skin-square
1.到官网下载Icheck压缩包。
2.解压后找到 icheck.min.js,jquery.js,zepto.js 以及skins文件夹,复制到自己的项目中
3.在项目中引用
4.写输入框代码
5.初始化
以上是icheck的一个简单实战教程。接下来再具体介绍一下
1、选择你要使用的皮肤样式主题,共6个(在skins文件下) flat,futurico,line,minimal,polaris,square 每个皮肤底下有好几个可以选择的颜色,例如:
Black — square.css
Red — red.css
Green — green.css
Blue — blue.css
Aero — aero.css
Grey — grey.css
Orange — orange.css
Yellow — yellow.css
Pink — pink.css
Purple — purple.css
2 .例如选择square皮肤下的blue.css,复制 skin/square文件夹下的到css文件夹下
3.引入icheck.js 移动端引入:
PC端引入
<input type="radio" name="iCheck"> 导入的颜色样式与 checkBoxClass, radioClass 要一一对应,否则不起作用
如:
对应的是