大佬教程收集整理的这篇文章主要介绍了bootstrap switch简单使用,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
https://www.cnblogs.com/fu-yong/p/8794457.html
http://www.bootcss.com/p/bootstrap-switch/
Bootstrap Switch是一款轻量级插件,可以给选择框设置类似于开关的样式
它是依赖于Bootstrap的一款插件
因为它是依赖于Bootstrap的一款插件,所以,在引入之前要先引入Bootstrap样式
1
2
3
4
|
<link rel
=
"stylesheet"
type
=
"text/css"
href
=
"/static/plugin/bootstrap/css/bootstrap.min.css"
>
<link rel
=
"stylesheet"
href
=
"/static/plugin/switch/bootstrap-switch.min.css"
>
<script src
=
"/static/plugin/switch/bootstrap-switch.min.js"
><
/
script>
|
除了默认的样式,还可以通过给input框设置属性的方式给它自定义一些样式
data-size="..."
data-on-color="..."
data-off-color="..."
data-on-text="..."(str类型)
data-off-text="..."
data-handle-width=".."(int类型)
data-label-width="..."(int类型)
readonly=""
disabled=""
更多
以上是大佬教程为你收集整理的bootstrap switch简单使用全部内容,希望文章能够帮你解决bootstrap switch简单使用所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。