批改状态:合格
老师批语:作业尽量写在一起
<body><button class="btn small">按钮1</button><button class="btn middle">按钮2</button><button class="btn large">按钮3</button><style>html {font-size: 10px;}.btn {border: none;background: slateblue;color: #fff;outline: none;border-radius: 3px;}.btn:hover {cursor: pointer;opacity: 0.8;transform: scale(1.05, 1.1);transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);padding: 0.4rem 0.8rem;}.btn.small {font-size: 1.2rem;}.btn.middle {font-size: 1.6rem;}.btn.large {font-size: 1.8rem;}@media (max-width: 1024px) {html {font-size: 12px;}}@media (min-width: 1025px) and (max-width: 1440px) {html {font-size: 14px;}}@media (min-width: 1441px) and (max-width: 1920px) {html {font-size: 16px;}}@media (min-width: 1921px) {html {font-size: 18px;}}</style></body>
@media (max-width: 1024px) { html { font-size: 12px; }@media (min-width: 1025px) and (max-width: 1440px) { html { font-size: 14px; } }@media (min-width: 1441px) and (max-width: 1920px) { html { font-size: 16px; } }@media (min-width: 1921px) { html { font-size: 18px; } }
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号