TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Vertical-Align: All You Need to Know (CSS) (2014)

51 点作者 not_a_boat11 个月前

1 comment

padolsey11 个月前
This article is ten years old; thought that worth flagging. Nowadays I find myself more comfortable using flexbox and grids to manage these kinds of layout subtleties. Or when in complete dismay, using the `top:50%;left:50%;translate(-50%,-50%)` hack. I find inline elements less reliable and less 'knowable', especially in responsive layouts. I think I only end up using vertical-align in incredibly narrow use-cases. Though curious to hear other peoples' experiences.
评论 #40885677 未加载
评论 #40887281 未加载
评论 #40885111 未加载