css实现炫酷的radio单选框美化效果代码
代码语言:html
所属分类:表单美化
代码描述:css实现炫酷的radio单选框美化效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css?family=Lato');body,html{height:100%;background:#222;font-family:'Lato',sans-serif}.container{display:block;position:relative;margin:40px auto;height:auto;width:500px;padding:20px}h2{color:#AAA}.container ul{list-style:none;margin:0;padding:0;overflow:auto}ul li{color:#AAA;display:block;position:relative;float:left;width:100%;height:100px;border-bottom:1px solid #333}ul li input[type=radio]{position:absolute;visibility:hidden}ul li label{display:block;position:relative;font-weight:300;font-size:1.35em;padding:25px 25px 25px 80px;margin:10px auto;height:30px;z-index:9;cursor:pointer;-webkit-transition:all .25s linear}ul li:hover label{color:#FFF}ul li .check{display:block;position:absolute;border:5px solid #AAA;border-radius:100%;height:25px;width:25px;top:30px;left:20px;z-index:5;transition:border .25s linear;-webkit-transition:border .25s linear}ul li:hover .check{border:5px solid #FFF}ul li .check::before{display:block;position:absolute;content:'';border-radius:100%;height:15px;width:15px;top:5px;left:5px;margin:auto;transition:background .25s linear;-webkit-transition:background .25s linear}input[type=radio]:checked ~ .check{border:5px solid #0DFF92}input[type=radio]:checked ~ .check::before{background:#0DFF92}input[type=radio]:checked ~ label{color:#0DFF92}.signature{margin:10px auto;padding:10px 0;width:100%}.signature p{text-align:center;font-family:Helvetica,Arial,Sans-Serif;font-size:.85em;color:#AAA}.signature .much-heart{display:inline-block;position:relative;margin:0 4px;height:10px;width:10px;background:#AC1D3F;border-radius:4px;-ms-transform:rotate(45deg).........完整代码请登录后点击上方下载按钮下载查看
网友评论0