/* 全局底座(base) */ /* 页内锚点平滑滚动:html + body 都写,兼容不同浏览器的滚动根节点 */ html { font-size: 16px; } html,body{ width: 100%; height: 100%; } body{ overflow-x: hidden; } ::-webkit-scrollbar { /* display: none; */ } * { margin: 0; padding: 0; box-sizing: border-box; } button{ border: none; outline: none; background: none; cursor: pointer; } a { text-decoration: none; } ul,p,ol,h1,h2,h3,h4,h5,h6,figure{ padding: 0; margin: 0; } li{ list-style: none; } body { background: #fff; } img { object-fit: cover; user-select: none; } .s-btn:hover,button:hover { transition: transform 0.3s ease; transform: translateY(1px); }