html radio vue,Vue.js自定义Radio选项按钮

CSS

语言:

CSSSCSS

确定

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600);

:root {

font-size: 16px;

}

* {

box-sizing: border-box;

}

html,

body {

height: 100%;

margin: 0;

padding: 0;

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-box-orient: vertical;

-webkit-box-direction: normal;

-webkit-flex-direction: column;

-ms-flex-direction: column;

flex-direction: column;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

-webkit-box-align: center;

-webkit-align-items: center;

-ms-flex-align: center;

align-items: center;

}

.radio-btn-group {

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

}

.radio-btn-group .radio {

margin: 0 .25rem;

}

.radio-btn-group .radio label {

background: #fff;

border: 1px solid #ddd;

padding: .5rem 1.25rem;

border-radius: 5px;

cursor: pointer;

color: #444;

-webkit-transition: box-shadow 400ms ease;

transition: box-shadow 400ms ease;

}

.radio-btn-group .radio label:hover {

box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);

}

.radio-btn-group .radio input[type="radio"] {

display: none;

}

.radio-btn-group .radio input[type="radio"]:checked + label {

background: #2196F3;

color: #fff;

border-color: #2196F3;

}

.show {

font-weight: 400;

color: #444;

}

.show span {

background: #f5f5f5;

color: #F44336;

border-radius: 3px;

padding: .25rem .5rem;

font-size: 1.25rem;

border: 1px solid #f1f1f1;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值