文章来源:https://www.toymoban.com/news/detail-679492.html
文章来源地址https://www.toymoban.com/news/detail-679492.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>纯 CSS 开关切换按钮</title>
<style>
html {
font-size: 62.5%;
}
body {
background-color: #1848a0;
}
.wrapper {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.toggler {
animation: showToggler 300ms ease-out;
cursor: pointer;
height: 25px;
margin: 10px 0;
}
.toggler .choices {
transition: background-color 300ms ease-out;
cursor: pointer;
position: relative;
display: block;
width: 100%;
height: 25px;
到了这里,关于纯 CSS 开关切换按钮的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!