我是靠谱客的博主 大意保温杯,最近开发中收集的这篇文章主要介绍普通html和vue单选框的样式,修改原生单选框样式(vue单选组件),觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

一、效果如图

68f84ac1f8aeb0b997c8e03e6351e7bf1e3.jpg

二、实现

修改单选样式

//html

//less

@bf: 108rem;

.radio-wrap{

position: absolute;

top:100/@bf;

right:50/@bf;

height: 70/@bf;

width: 70/@bf;

line-height: 50/@bf;

vertical-align: middle;

input[type="radio"] {

width: 55/@bf;

height: 55/@bf;

opacity: 0;

cursor: pointer;

}

label{

position: absolute;

left: 0;

top: 0;

width: .61rem;

height:.6rem;

border-radius: 50%;

border: 1px solid #999999;

}

input:checked+label {

background: #fde117;

border: 1px solid #999999;

}

input:checked+label::after {

position: absolute;

content: "";

width: .13rem;

height: .3rem;

top: .07rem;

left: .2rem;

background: #fde117;

border: 2px solid #333;

border: 1px solid #333;

border-top: none;

border-left: none;

transform: rotate(45deg);

}

}

}

最后

以上就是大意保温杯为你收集整理的普通html和vue单选框的样式,修改原生单选框样式(vue单选组件)的全部内容,希望文章能够帮你解决普通html和vue单选框的样式,修改原生单选框样式(vue单选组件)所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(43)

评论列表共有 0 条评论

立即
投稿
返回
顶部