<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>改变radio的点</title>
<style>
*{padding:0px; margin:0px;}
.radio_list{display: none;}
.radio_list +label{-webkit-appearance:none;display:inline-block;padding-left:24px;position:relative;}
.radio_list +label:before{ content: "";position:absolute;left:2px;top:2px;background:#666;border:1px solid #000;padding:6px;border-radius: 100%;}
.radio_list:checked +label:after{ content: "";width:8px;height:8px; border-radius:100%;background-color:#ccc; position: absolute; top:5px; left:5px;}
</style>
</head>
<body>
<h2>改变radio的样式</h2>
<div class="radio">
<div>
<input type="radio" class="radio_list" id="radio_list_01" name="radio_1"><label for="radio_list_01">其他支付</label>
<input type="radio" class="radio_list" id="radio_list_02" name="radio_1"><label for="radio_list_02">支付宝支付</label>
<input type="radio" class="radio_list" id="radio_list_03" name="radio_1"><label for="radio_list_03">微信支付</label>
<input type="radio" class="radio_list" id="radio_list_04" name="radio_1"><label for="radio_list_04">银行卡支付</label>
</div>
</div>
</body>
</html>
转载于:https://www.cnblogs.com/ll-taj/p/5541340.html