CSS 导航匹配, 早日

2026年8月19日1 次浏览来源:CSS-Tricks阅读原文

正文保留英文原文(机翻易破坏代码与排版),标题/摘要已提供中文

当某人从一个特定页面浏览到另一个页面时应用样式。 这个想法会让跨文档视图的源头 在CSS中声明 而不是在JavaScript中管理那些东西。 CSS导航匹配,"早起"最初是用手写并用爱在CSS-Tricks上发表. 你也应该拿到通讯.

Apply a style when someone navigates from one specific page to another.

The idea being it'd make the sources for cross-document view transitions declarative in CSS rather than managing that stuff in JavaScript.

CSS Navigation Matching, Early Days originally handwritten and published with love on CSS-Tricks.

You should really get the newsletter as well.

分享