短评 · ·

X 归档 2025-02-28

1 条动态 · 图 0 · 视频 1
@jh3yy06:19原推文
using CSS grid you can avoid width change in the parent container whilst making it responsive 🤙

the trick: update and transition the grid-template-columns for the list on :focus/:hover ✨ https://t.co/2X6prURouW
用 CSS grid 可以在做出响应式效果的同时,避免父容器宽度发生变化 🤙

技巧:在 :focus/:hover 时更新并过渡列表的 grid-template-columns ✨ https://t.co/2X6prURouW