X 归档 2022-07-12
I think the new typescript type checker will come out in six months. And I think it will be open-sourced. I often say this and that out of boredom, but I don't want to reverse my public remarks.
我觉得新的 TypeScript 类型检查器会在六个月内出来,而且我觉得它会开源。我经常出于无聊随口说这说那,但我不想收回我的公开言论。
After thinking about this for years, I've finally figured out how to make a pure CSS expanding div that I really like 🥲
Other implementations I've seen use `max-height`, which I find a little hacky. I got it to work very smoothly with `line-height`.
https://codepen.io/samlittlefair/pen/bGvwpyR?editors=1100
Other implementations I've seen use `max-height`, which I find a little hacky. I got it to work very smoothly with `line-height`.
https://codepen.io/samlittlefair/pen/bGvwpyR?editors=1100
思考了好几年之后,我终于想出了一个自己非常满意的纯 CSS 展开 div 的方案 🥲
我见过的其他实现都用 `max-height`,我觉得有点 hack。我用 `line-height` 让它运行得非常顺滑。
https://codepen.io/samlittlefair/pen/bGvwpyR?editors=1100
我见过的其他实现都用 `max-height`,我觉得有点 hack。我用 `line-height` 让它运行得非常顺滑。
https://codepen.io/samlittlefair/pen/bGvwpyR?editors=1100

