css+div实现cps每秒点击次数测试比赛效果代码
代码语言:html
所属分类:其他
代码描述:css+div实现cps每秒点击次数测试比赛效果代码,疯狂点击鼠标左键,看你在10秒内能点击多少次,然后计算出cps值。
代码标签: css div cps 每秒 点击 次数 测试 比赛
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://fonts.googleapis.com/css2?family=Readex+Pro:wght@400;700&display=swap" rel="stylesheet"> <style> :root { --space-0: 4px; --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 40px; --space-6: 48px; --space-7: 56px; --space-8: 64px; --space-9: 72px; --space-10: 80px; --space-11: 88px; --space-12: 96px; --background: #f8fafb; --text-on-background: #000; --contrast: #282828; --text-on-contrast: #fff; --primary-color: #8cc152; --primary-color-alt: #a0d468; --cover-bg: #dba6a6; --text-on-primary: #fff; } h1, h2, h3, p, ul, ol, li, * { margin: 0; padding: 0; font: inherit; } body { counter-reset: clicks; display: grid; place-items: stretch; min-height: 100dvh; background: var(--background); color: var(--text-on-background); font-family: 'Readex Pro', sans-serif; text-rendering: optimizeLegibility; } body main { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, auto) 1fr auto; grid-template-areas: "header header" "time clicks" "button button" "retry retry"; grid-gap: var(--space-2); width: calc(100% - 2 * var(--space-2)); margin: var(--space-2) auto; max-width: 800px; } @media all and (max-width: 420px) { body main { grid-template-columns: initial; grid-template-rows: repeat(3, auto) 1fr auto; grid-template-areas: "header" "time" "clicks" "button" "retry"; } } body main h1 { grid-area: header; font-size: 3rem; text-align: center; font-weight: 700; } body main .time, body main .clicks { background: var(--contrast); color: var(--text-on-contrast); padding: 1em; border-radius: var(--space-3); text-align: center; font-size: 1.5rem; } body main .time span, body main .clicks span { margin-left: 0.5ch; } body main .time { grid-area: time; } body main .time .time_counter:before { content: '?'; -webkit-animation: countdown 10s forwards paused; animation: countdown 10s forwards paused; } @-webkit-keyframes countdown { 0% { content: '10s'; } 10% { content: '9s'; } 20% { content: '8s'; } 30% { content: '7s'; } 40% { content: '6s'; } 50% { content: '5s'; } 60% { content: '4s'; } 70% { content: '3s'; } 80% { content: '2s'; } 90% { content: '1s'; } 100% { content: '0s'; } } @keyframes countdown { 0% { content: '10s'; } 10% { content: '9s'; } 20% { content: '8s'; } 30% { content: '7s'; } 40% { content: '6s'; } 50% { content: '5s'; } 60% { content: '4s'; } 70% { content: '3s'; } 80% { content: '2s'; } 90% { content: '1s'; } 100% { content: '0s'; } } body main .clicks { grid-area: clicks; } body main .clicks .clicks_counter:before { content: counter(clicks); } body main input[type="checkbox"], body main .cover { place-items: center; grid-area: button; border-radius: var(--space-3); } body main input[type="checkbox"]:before, body main .cover:before, body main input[type="checkbox"]:after, body main .cover:after { color: var(--text-on-primary); font-size: 2rem; } body main .cover { z-index: 1; position: relative; left: -10000vw; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 0 0 var(--space-1) var(--background); background: var(--cover-bg); -webkit-animation: ended 10s forwards steps(1) paused; animation: ended 10s forwards steps(1) paused; } body main .cover:before { content: "Time's Up"; } body main .cover:after { content: "Rating: 🦥"; } @-webkit-keyframes ended { 99% { left: -10000vw; } 100% { left: 0vw; } } @keyframes ended { 99% { left: -10000vw; } 100% { left: 0vw; } } body main input[type="checkbox"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 100%; min-height: 300px; background: var(--primary-color); box-shadow: 0 0 0 var(--space-1) var(--background); transition: 0.1s -0.025s; } body main input[type="checkbox"]:first-of-type:before { content: 'Click to Start'; } body main input[type="checkbox"]:hover { background: var(--primary-color-alt); } body main input[type="checkbox"]:not(:first-of-type) { display: none; } body main input[type="checkbox"]:checked { counter-increment: clicks; } body main input[type="checkbox"], body main input[type="checkbox"]:checked+input { display: grid; } body main input[type="checkbox"]:before, body main input[type="checkbox"]:checked+input:before { content: 'Keep Clicking'; } body main input[type="checkbox"]:first-of-type:checked~.time .time_counter:before, body main input[type="checkbox"]:first-of-type:checked~.cover { -webkit-animation-play-state: running; animation-play-state: running; } body main input[type="checkbox"]:nth-of-type(0):checked~.cover:before { content: '0 CPS'; } body main input[type="checkbox"]:nth-of-type(1):checked~.cover:before { content: '0.1 CPS'; } body main input[type="checkbox"]:nth-of-type(2):checked~.cover:before { content: '0.2 CPS'; } body main input[type="checkbox"]:nth-of-type(3):checked~.cover:before { content: '0.3 CPS'; } body main input[type="checkbox"]:nth-of-type(4):checked~.cover:before { content: '0.4 CPS'; } body main input[type="checkbox"]:nth-of-type(5):checked~.cover:before { content: '0.5 CPS'; } body main input[type="checkbox"]:nth-of-type(6):checked~.cover:before { content: '0.6 CPS'; } body main input[type="checkbox"]:nth-of-type(7):checked~.cover:before { content: '0.7 CPS'; } body main input[type="checkbox"]:nth-of-type(8):checked~.cover:before { content: '0.8 CPS'; } body main input[type="checkbox"]:nth-of-type(9):checked~.cover:before { content: '0.9 CPS'; } body main input[type="checkbox"]:nth-of-type(10):checked~.cover:before { content: '1 CPS'; } body main input[type="checkbox"]:nth-of-type(11):checked~.cover:before { content: '1.1 CPS'; } body main input[type="checkbox"]:nth-of-type(12):checked~.cover:before { content: '1.2 CPS'; } body main input[type="checkbox"]:nth-of-type(13):checked~.cover:before { content: '1.3 CPS'; } body main input[type="checkbox"]:nth-of-type(14):checked~.cover:before { content: '1.4 CPS'; } body main input[type="checkbox"]:nth-of-type(15):checked~.cover:before { content: '1.5 CPS'; } body main input[type="checkbox"]:nth-of-type(16):checked~.cover:before { content: '1.6 CPS'; } body main input[type="checkbox"]:nth-of-type(17):checked~.cover:before { content: '1.7 CPS'; } body main input[type="checkbox"]:nth-of-type(18):checked~.cover:before { content: '1.8 CPS'; } body main input[type="checkbox"]:nth-of-type(19):checked~.cover:before { content: '1.9 CPS'; } body main input[type="checkbox"]:nth-of-type(20):checked~.cover:before { content: '2 CPS'; } body main input[type="checkbox"]:nth-of-type(21):checked~.cover:before { content: '2.1 CPS'; } body main input[type="checkbox"]:nth-of-type(22):checked~.cover:before { content: '2.2 CPS'; } body main input[type="checkbox"]:nth-of-type(23):checked~.cover:before { content: '2.3 CPS'; } body main input[type="checkbox"]:nth-of-type(24):checked~.cover:before { content: '2.4 CPS'; } body main input[type="checkbox"]:nth-of-type(25):checked~.cover:before { content: '2.5 CPS'; } body main input[type="checkbox"]:nth-of-type(26):checked~.cover:before { content: '2.6 CPS'; } body main input[type="checkbox"]:nth-of-type(27):checked~.cover:before { content: '2.7 CPS'; } body main input[type="checkbox"]:nth-of-type(28):checked~.cover:before { content: '2.8 CPS'; } body main input[type="checkbox"]:nth-of-type(29):checked~.cover:before { content: '2.9 CPS'; } body main input[type="checkbox"]:nth-of-type(30):checked~.cover:before { content: '3 CPS'; } body main input[type="checkbox"]:nth-of-type(31):checked~.cover:before { content: '3.1 CPS'; } body main input[type="checkbox"]:nth-of-type(32):checked~.cover:before { content: '3.2 CPS'; } body main input[type="checkbox"]:nth-of-type(33):checked~.cover:before { content: '3.3 CPS'; } body main input[type="checkbox"]:nth-of-type(34):checked~.cover:before { content: '3.4 CPS'; } body main input[type="checkbox"]:nth-of-type(35):checked~.cover:before { content: '3.5 CPS'; } body main input[type="checkbox"]:nth-of-type(36):checked~.cover:before { content: '3.6 CPS'; } body main input[type="checkbox"]:nth-of-type(37):checked~.cover:before { content: '3.7 CPS'; } body main input[type="checkbox"]:nth-of-type(38):checked~.cover:before { content: '3.8 CPS'; } body main input[type="checkbox"]:nth-of-type(39):checked~.cover:before { content: '3.9 CPS'; } body main input[type="checkbox"]:nth-of-type(40):checked~.cover:before { content: '4 CPS'; } body main input[type="checkbox"]:nth-of-type(41):checked~.cover:before { content: '4.1 CPS'; } body main input[type="checkbox"]:nth-of-type(42):checked~.cover:before { content: '4.2 CPS'; } body main input[type="checkbox"]:nth-of-type(43):checked~.cover:before { content: '4.3 CPS'; } body main input[type="checkbox"]:nth-of-type(44):checked~.cover:before { content: '4.4 CPS'; } body main input[type="checkbox"]:nth-of-type(45):checked~.cover:before { content: '4.5 CPS'; } body main input[type="checkbox"]:nth-of-type(46):checked~.cover:before { content: '4.6 CPS'; } body main input[type="checkbox"]:nth-of-type(47):checked~.cover:before { content: '4.7 CPS'; } body main input[type="checkbox"]:nth-of-type(48):checked~.cover:before { content: '4.8 CPS'; } body main input[type="checkbox"]:nth-of-type(49):checked~.cover:before { content: '4.9 CPS'; } body main input[type="checkbox"]:nth-of-type(50):checked~.cover:before { content: '5 CPS'; } body main input[type="checkbox"]:nth-of-type(51):checked~.cover:before { content: '5.1 CPS'; } body main input[type="checkbox"]:nth-of-type(52):checked~.cover:before { content: '5.2 CPS'; } body main input[type="checkbox"]:nth-of-type(53):checked~.cover:before { content: '5.3 CPS'; } body main input[type="checkbox"]:nth-of-type(54):checked~.cover:before { content: '5.4 CPS'; } body main input[type="checkbox"]:nth-of-type(55):checked~.cover:before { content: '5.5 CPS'; } body main input[type="checkbox"]:nth-of-type(56):checked~.cover:before { content: '5.6 CPS'; } body main input[type="checkbox"]:nth-of-type(57):checked~.cover:before { content: '5.7 CPS'; } body main input[type="checkbox"]:nth-of-type(58):checked~.cover:before { content: '5.8 CPS'; } body main input[type="checkbox"]:nth-of-type(59):checked~.cover:before { content: '5.9 CPS'; } body main input[type="checkbox"]:nth-of-type(60):checked~.cover:before { content: '6 CPS'; } body main input[type="checkbox"]:nth-of-type(61):checked~.cover:before { content: '6.1 CPS'; } body main input[type="checkbox"]:nth-of-type(62):checked~.cover:before { content: '6.2 CPS'; } body main input[type="checkbox"]:nth-of-type(63):checked~.cover:before { content: '6.3 CPS'; } body main input[type="checkbox"]:nth-of-type(64):checked~.cover:before { content: '6.4 CPS'; } body main input[type="checkbox"]:nth-of-type(65):checked~.cover:before { content: '6.5 CPS'; } body main input[type="checkbox"]:nth-of-type(66):checked~.cover:before { content: '6.6 CPS'; } body main input[type="checkbox"]:nth-of-type(67):checked~.cover:before { content: '6.7 CPS'; } body main input[type="checkbox"]:nth-of-type(68):checked~.cover:before { content: '6.8 CPS'; } body main input[type="checkbox"]:nth-of-type(69):checked~.cover:before { content: '6.9 CPS'; } body main input[type="checkbox"]:nth-of-type(70):checked~.cover:before { content: '7 CPS'; } body main input[type="checkbox"]:nth-of-type(71):checked~.cover:before { content: '7.1 CPS'; } body main input[type="checkbox"]:nth-of-type(72):checked~.cover:before { content: '7.2 CPS'; } body main input[type="checkbox"]:nth-of-type(73):checked~.cover:before { content: '7.3 CPS'; } body main input[type="checkbox"]:nth-of-type(74):checked~.cover:before { content: '7.4 CPS'; } body main input[type="checkbox"]:nth-of-type(75):checked~.cover:before { content: '7.5 CPS'; } body main input[type="checkbox"]:nth-of-type(76):checked~.cover:before { content: '7.6 CPS'; } body main input[type="checkbox"]:nth-of-type(77):checked~.cover:before { content: '7.7 CPS'; } body main input[type="checkbox"]:nth-of-type(78):checked~.cover:before { content: '7.8 CPS'; } body main input[type="checkbox"]:nth-of-type(79):checked~.cover:before { content: '7.9 CPS'; } body main input[type="checkbox"]:nth-of-type(80):checked~.cover:before { content: '8 CPS'; } body main input[type="checkbox"]:nth-of-type(81):checked~.cover:before { content: '8.1 CPS'; } body main input[type="checkbox"]:nth-of-type(82):checked~.cover:before { content: '8.2 CPS'; } body main input[type="checkbox"]:nth-of-type(83):checked~.cover:before { content: '8.3 CPS'; } body main input[type="checkbox"]:nth-of-type(84):checked~.cover:before { content: '8.4 CPS'; } body main input[type="checkbox"]:nth-of-type(85):checked~.cover:before { content: '8.5 CPS'; } body main input[type="checkbox"]:nth-of-type(86):checked~.cover:before { content: '8.6 CPS'; } body main input[type="checkbox"]:nth-of-type(87):checked~.cover:before { content: '8.7 CPS'; } body main input[type="checkbox"]:nth-of-type(88):checked~.cover:before { content: '8.8 CPS'; } body main input[type="checkbox"]:nth-of-type(89):checked~.cover:before { content: '8.9 CPS'; } body main input[type="checkbox"]:nth-of-type(90):checked~.cover:before { content: '9 CPS'; } body main input[type="checkbox"]:nth-of-type(91):checked~.cover:before { content: '9.1 CPS'; } body main input[type="checkbox"]:nth-of-type(92):checked~.cover:before { content: '9.2 CPS'; } body main input[type="checkbox"]:nth-of-type(93):checked~.cover:before { content: '9.3 CPS'; } body main input[type="checkbox"]:nth-of-type(94):checked~.cover:before { content: '9.4 CPS'; } body main input[type="checkbox"]:nth-of-type(95):checked~.cover:before { content: '9.5 CPS'; } body main input[type="checkbox"]:nth-of-type(96):checked~.cover:before { content: '9.6 CPS'; } body main input[type="checkbox"]:nth-of-type(97):checked~.cover:before { content: '9.7 CPS'; } body main input[type="checkbox"]:nth-of-type(98):checked~.cover:before { content: '9.8 CPS'; } body main input[type="checkbox"]:nth-of-type(99):checked~.cover:before { content: '9.9 CPS'; } body main input[type="checkbox"]:nth-of-type(100):checked~.cover:before { content: '10 CPS'; } body main input[type="checkbox"]:nth-of-type(101):checked~.cover:before { content: '10.1 CPS'; } body main input[type="checkbox"]:nth-of-type(102):checked~.cover:before { content: '10.2 CPS'; } body main input[type="checkbox"]:nth-of-type(103):checked~.cover:before { content: '10.3 CPS'; } body main input[type="checkbox"]:nth-of-type(104):checked~.cover:before { content: '10.4 CPS'; } body main input[type="checkbox"]:nth-of-type(105):checked~.cover:before { content: '10.5 CPS'; } body main input[type="checkbox"]:nth-of-type(106):checked~.cover:before { content: '10.6 CPS'; } body main input[type="checkbox"]:nth-of-type(107):checked~.cover:before { content: '10.7 CPS'; } body main input[type="checkbox"]:nth-of-type(108):checked~.cover:before { content: '10.8 CPS'; } body main input[type="checkbox"]:nth-of-type(109):checked~.cover:before { content: '10.9 CPS'; } body main input[type="checkbox"]:nth-of-type(110):checked~.cover:before { content: '11 CPS'; } body main input[type="checkbox"]:nth-of-type(111):checked~.cover:before { content: '11.1 CPS'; } body main input[type="checkbox"]:nth-of-type(112):checked~.cover:before { content: '11.2 CPS'; } body main input[type="checkbox"]:nth-of-type(113):checked~.cover:before { content: '11.3 CPS'; } body main input[type="checkbox"]:nth-of-type(114):checked~.cover:before { content: '11.4 CPS'; } body main input[type="checkbox"]:nth-of-type(115):checked~.cover:before { content: '11.5 CPS'; } body main input[type="checkbox"]:nth-of-type(116):checked~.cover:before { content: '11.6 CPS'; } body main input[type="checkbox"]:nth-of-type(117):checked~.cover:before { content: '11.7 CPS'; } body main input[type="checkbox"]:nth-of-type(118):checked~.cover:before { content: '11.8 CPS'; } body main input[type="checkbox"]:nth-of-type(119):checked~.cover:before { content: '11.9 CPS'; } body main input[type="checkbox"]:nth-of-type(120):checked~.cover:before { content: '12 CPS'; } body main input[type="checkbox"]:nth-of-type(121):checked~.cover:before { content: '12.1 CPS'; } body main input[type="checkbox"]:nth-of-type(122):checked~.cover:before { content: '12.2 CPS'; } body main input[type="checkbox"]:nth-of-type(123):checked~.cover:before { content: '12.3 CPS'; } body main input[type="checkbox"]:nth-of-type(124):checked~.cover:before { content: '12.4 CPS'; } body main input[type="checkbox"]:nth-of-type(125):checked~.cover:before { content: '12.5 CPS'; } body main input[type="checkbox"]:nth-of-type(126):checked~.cover:before { content: '12.6 CPS'; } body main input[type="checkbox"]:nth-of-type(127):checked~.cover:before { content: '12.7 CPS'; } body main input[type="checkbox"]:nth-of-type(128):checked~.cover:before { content: '12.8 CPS'; } body main input[type="checkbox"]:nth-of-type(129):checked~.cover:before { content: '12.9 CPS'; } body main input[type="checkbox"]:nth-of-type(130):checked~.cover:before { content: '13 CPS'; } body main input[type="checkbox"]:nth-of-type(131):checked~.cover:before { content: '13.1 CPS'; } body main input[type="checkbox"]:nth-of-type(132):checked~.cover:before { content: '13.2 CPS'; } body main input[type="checkbox"]:nth-of-type(133):checked~.cover:before { content: '13.3 CPS'; } body main input[type="checkbox"]:nth-of-type(134):checked~.cover:before { content: '13.4 CPS'; } body main input[type="checkbox"]:nth-of-type(135):checked~.cover:before { content: '13.5 CPS'; } body main input[type="checkbox"]:nth-of-type(136):checked~.cover:before { content: '13.6 CPS'; } body main input[type="checkbox"]:nth-of-type(137):checked~.cover:before { content: '13.7 CPS'; } body main input[type="checkbox"]:nth-of-type(138):checked~.cover:before { content: '13.8 CPS'; } body main input[type="checkbox"]:nth-of-type(139):checked~.cover:before { content: '13.9 CPS'; } body main input[type="checkbox"]:nth-of-type(140):checked~.cover:before { content: '14 CPS'; } body main input[type="checkbox"]:nth-of-type(141):checked~.cover:before { content: '14.1 CPS'; } body main input[type="checkbox"]:nth-of-type(142):checked~.cover:before { content: '14.2 CPS'; } body main input[type="checkbox"]:nth-of-type(143):checked~.cover:before { content: '14.3 CPS'; } body main input[type="checkbox"]:nth-of-type(144):checked~.cover:before { content: '14.4 CPS'; } body main input[type="checkbox"]:nth-of-type(145):checked~.cover:before { content: '14.5 CPS'; } body main input[type="checkbox"]:nth-of-type(146):checked~.cover:before { content: '14.6 CPS'; } body main input[type="checkbox"]:nth-of-type(147):checked~.cover:before { content: '14.7 CPS'; } body main input[type="checkbox"]:nth-of-type(148):checked~.cover:before { content: '14.8 CPS'; } body main input[type="checkbox"]:nth-of-type(149):checked~.cover:before { content: '14.9 CPS'; } body main input[type="checkbox"]:nth-of-type(150):checked~.cover:before { content: '15 CPS'; } body main input[type="checkbox"]:nth-of-type(151):checked~.cover:before { content: '15.1 CPS'; } body main input[type="checkbox"]:nth-of-type(152):checked~.cover:before { content: '15.2 CPS'; } body main input[type="checkbox"]:nth-of-type(153):checked~.cover:before { content: '15.3 CPS'; } body main input[type="checkbox"]:nth-of-type(154):checked~.cover:before { content: '15.4 CPS'; } body main input[type="checkbox"]:nth-of-type(155):checked~.cover:before { content: '15.5 CPS'; } body main input[type="checkbox"]:nth-of-type(156):checked~.cover:before { content: '15.6 CPS'; } body main input[type="checkbox"]:nth-of-type(157):checked~.cover:before { content: '15.7 CPS'; } body main input[type="checkbox"]:nth-of-type(158):checked~.cover:before { content: '15.8 CPS'; } body main input[type="checkbox"]:nth-of-type(159):checked~.cover:before { content: '15.9 CPS'; } body main input[type="checkbox"]:nth-of-type(160):checked~.cover:before { content: '16 CPS'; } body main input[type="checkbox"]:nth-of-type(161):checked~.cover:before { content: '16.1 CPS'; } body main input[type="checkbox"]:nth-of-type(162):checked~.cover:before { content: '16.2 CPS'; } body main input[type="checkbox"]:nth-of-type(163):checked~.cover:before { content: '16.3 CPS'; } body main input[type="checkbox"]:nth-of-type(164):checked~.cover:before { content: '16.4 CPS'; } body main input[type="checkbox"]:nth-of-type(165):checked~.cover:before { content: '16.5 CPS'; } body main input[type="checkbox"]:nth-of-type(166):checked~.cover:before { content: '16.6 CPS'; } body main input[type="checkbox"]:nth-of-type(167):checked~.cover:before { content: '16.7 CPS'; } body main input[type="checkbox"]:nth-of-type(168):checked~.cover:before { content: '16.8 CPS'; } body main input[type="checkbox"]:nth-of-type(169):checked~.cover:before { content: '16.9 CPS'; } body main input[type="checkbox"]:nth-of-type(170):checked~.cover:before { content: '17 CPS'; } body main input[type="checkbox"]:nth-of-type(171):checked~.cover:before { content: '17.1 CPS'; } body main input[type="checkbox"]:nth-of-type(172):checked~.cover:before { content: '17.2 CPS'; } body main input[type="checkbox"]:nth-of-type(173):checked~.cover:before { content: '17.3 CPS'; } body main input[type="checkbox"]:nth-of-type(174):checked~.cover:before { content: '17.4 CPS'; } body main input[type="checkbox"]:nth-of-type(175):checked~.cover:before { content: '17.5 CPS'; } body main input[type="checkbox"]:nth-of-type(176):checked~.cover:before { content: '17.6 CPS'; } body main input[type="checkbox"]:nth-of-type(177):checked~.cover:before { content: '17.7 CPS'; } body main input[type="checkbox"]:nth-of-type(178):checked~.cover:before { content: '17.8 CPS'; } body main input[type="checkbox"]:nth-of-type(179):checked~.cover:before { content: '17.9 CPS'; } body main input[type="checkbox"]:nth-of-type(180):checked~.cover:before { content: '18 CPS'; } body main input[type="checkbox"]:nth-of-type(181):checked~.cover:before { content: '18.1 CPS'; } body main input[type="checkbox"]:nth-of-type(182):checked~.cover:before { content: '18.2 CPS'; } body main input[type="checkbox"]:nth-of-type(183):checked~.cover:before { content: '18.3 CPS'; } body main input[type="checkbox"]:nth-of-type(184):checked~.cover:before { content: '18.4 CPS'; } body main input[type="checkbox"]:nth-of-type(185):checked~.cover:before { content: '18.5 CPS'; } body main input[type="checkbox"]:nth-of-type(186):checked~.cover:before { content: '18.6 CPS'; } body main input[type="checkbox"]:nt.........完整代码请登录后点击上方下载按钮下载查看
网友评论0