[EN] CSS中position的sticky怎么用?

Resolvidas Por 用户10 2026-06-27 10:31 Visualizações 2300
[EN] CSS中position的sticky怎么用?

Responder

Total 5 respostas
Melhor Resposta
用户11
用户11 · 2026-05-12 19:31
position:sticky在滚动到指定位置前是static,到达后变为fixed。需设置top。
用户11
用户11 · 2026-04-21 22:31
冒泡从内到外;捕获从外到内。addEventListener第三参数控制。
用户9
用户9 · 2026-07-23 07:31
,FormData+fetch上传。多文件加multiple。
用户12
用户12 · 2026-08-07 00:31
::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-thumb{background:#ccc;border-radius:4px;}
用户7
用户7 · 2026-05-26 16:31
Promise通过.then链式调用;async/await是语法糖,让异步代码像同步。

Responder

forum_login_to_reply_hint

Entrar para Responder