首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 前端Sass完全指南:从入门到精通

    (mobile) { padding: 1rem; } @include respond-to(tablet) { padding: 2rem; max-width : 768px; } @include respond-to(desktop) { padding: 3rem; max-width: 1200px; margin (tablet) { max-width: 400px; } @include respond-to(desktop) { max-width: 350px; } } : 1fr; } @include respond-to(tablet) { grid-template-columns: repeat(2, 1fr); } @include respond-to(desktop) { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); } } // 特殊卡片变体

    40410编辑于 2025-12-15
  • 前端兼容性与调试技巧完全指南

    padding: rem(20px) rem(30px); // 0.2rem 0.3rem font-size: rem(28px); // 0.28rem } // 媒体查询 mixin @mixin respond-to min-width: 1024px) { @content; } } } // 使用示例 .responsive-element { width: rem(750px); @include respond-to (tablet) { width: rem(600px); } @include respond-to(phone) { width: rem(375px); } }

    24610编辑于 2025-12-15
领券