CSS3样式控制input按钮效果
来源:互联网 发布:淘宝店铺类目怎么修改 编辑:程序博客网 时间:2024/06/10 20:19
.clearfix:before,.clearfix:after { display: table; content: " ";}.clearfix:after { clear: both;}/* 多选框 *//* example:<label><input type="checkbox" class="switch" id="" name=""><span></span> 同意</label> */input[type="checkbox"].switch{position: absolute; opacity: 0;-moz-opacity: 0;-webkit-opacity: 0;filter:alpha(opacity=0);width: 20px;height: 20px;margin: 0;margin-left: 0 !important;cursor: pointer;}input[type="checkbox"].switch+span{background: url(../img/sprites.png) no-repeat -155px 0px;vertical-align: top;display: inline-block; width: 20px; height: 20px;}input[type="checkbox"].switch:checked+span{background: url(../img/sprites.png) no-repeat -105px 0px;}input[type="checkbox"].switch:disabled+span{background: url(../img/sprites.png) no-repeat -180px 0px;}input[type="checkbox"].switch:disabled:checked+span{background: url(../img/sprites.png) no-repeat -130px 0px;}.checkbox-normal{background: url(../img/sprites.png) no-repeat -155px 0px !important;}.checkbox-checked{background: url(../img/sprites.png) no-repeat -105px 0px !important;}.checkbox-disabled{background: url(../img/sprites.png) no-repeat -180px 0px !important;}.checkbox-checked-disabled{background: url(../img/sprites.png) no-repeat -130px 0px !important;}/* 单选框 *//* example:<label><input type="radio" class="switch" id="" name=""><span></span> 男</label> *//* 单选取消:var tempradio= null;$("input[type='radio']").click(function(){ if(tempradio==this){ $(this).prop('checked',false); if ($.browser.msie && $.browser.version <= 9) { $(this).next("span").attr('class', ''); } tempradio=null; }else{ $(this).prop('checked',true); if ($.browser.msie && $.browser.version <= 9) { $(this).next("span").addClass("radio-checked"); } tempradio=this; }}) */input[type="radio"].switch{position: absolute; opacity: 0;-moz-opacity: 0;-webkit-opacity: 0;filter:alpha(opacity=0);width: 20px;height: 20px;margin: 0;margin-left: 0 !important;cursor: pointer;}input[type="radio"].switch+span{background: url(../img/sprites.png) no-repeat -155px -25px;vertical-align: top;display: inline-block; width: 20px; height: 20px;}input[type="radio"].switch:checked+span{background: url(../img/sprites.png) no-repeat -105px -25px;}input[type="radio"].switch:disabled+span{background: url(../img/sprites.png) no-repeat -180px -25px;}input[type="radio"].switch:disabled:checked+span{background: url(../img/sprites.png) no-repeat -130px -25px;}.radio-normal{background: url(../img/sprites.png) no-repeat -155px 25px !important;}.radio-checked{background: url(../img/sprites.png) no-repeat -105px -25px !important;}.radio-disabled{background: url(../img/sprites.png) no-repeat -180px -25px !important;}.radio-checked-disabled{background: url(../img/sprites.png) no-repeat -130px -25px !important;}
0 0
- CSS3样式控制input按钮效果
- input值控制按钮样式
- 纯CSS3动画按钮效果 5种漂亮样式
- input type=file后面浏览按钮的样式控制
- CSS3 input[type=file] 样式美化,input上传按钮美化
- CSS3 input[type=file] 样式美化,input上传按钮美化
- input+和按钮样式
- css3样式效果
- css3按钮波纹效果
- CSS3 重置iphone浏览器按钮input,select等表单元素的默认样式
- CSS3 去除苹果浏览器按钮input[type="submit"]和input[type="reset"]的默认样式
- CSS3创意样式按钮实现
- input file按钮样式修改
- CSS3实现开关按钮效果
- 如何控制input的样式
- 按钮 CSS3悬浮按钮彩球效果
- input type=button按钮样式在ios系统下的渲染效果和android效果不一样
- css3控制多重动画效果
- RGB图像转化为HSI图像
- 算法一些例子
- Contest1002 - HHU ACM 综合训练1 B题 Friendship of Mouse(朴素算法)
- U-BOOT-2016.07移植 (第四篇) 修改代码,从NOR启动
- Linux每天一点变量
- CSS3样式控制input按钮效果
- [Android Memory] 内存分析工具 MAT 的使用
- C#的集合类
- Node.js使用supervisor
- layer-list标签会导致绘制多层从而引发过度绘制
- shell 流程控制参数
- springMVC+MyBatis+freemarker整合
- 通过HTTP post方法请求资源可以带查询字符串吗?
- Android多渠道打包apk