jquery+css实现checkbox和radio单选开关多选美化效果代码

代码语言:html

所属分类:表单美化

代码描述:jquery+css实现checkbox和radio单选开关多选美化效果代码

代码标签: jquery css checkbox radio 单选 开关 多选 美化

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        
 <style>
     label.chkbox {
    display: inline-block;
    *display: inline;
    *zoom:1;position: relative;
    z-index: 2;
    vertical-align: top;
    width: 48px;
    height: 16px;
    border-radius: 5px;
    margin: 0 5px 5px 0;
    padding: 7px 10px;
    cursor: pointer;
    overflow: hidden;
    background-color: #cfcfcf;
    color: white;
    box-shadow: 0 1px 15px rgba(0,0,0,0.1) inset,0 1px 4px rgba(0,0,0,0.1) inset,1px -1px 2px rgba(0,0,0,0.1);
    -webkit-transition: background-color .4s ease;
    -moz-transition: background-color .4s ease;
    -ms-transition: background-color .4s ease;
    -o-transition: background-color .4s ease;
    transition: background-color .4s ease
}

label.chkbox .yes,label.chkbox .no {
    position: absolute;
    right: 8px;
    text-indent: -999em;
    height: 20px;
    width: 20px;
    background-repeat: no-repeat
}

label.chkbox .no {
    margin-top: -2px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA.........完整代码请登录后点击上方下载按钮下载查看

网友评论0