Home
Sign Up
Sign In
V2EX
›
问与答
问:瀑布流情况下,想在高度不定的图片中央垂直居中的放置物件,实现难度有多大?会对前端工作造成多大影响?
Keinez
·
Apr 29, 2013
· 3071 views
This topic created in 4955 days ago, the information mentioned may be changed or developed.
RT。
实现应该不是问题,主要关心实现后前端性能、代码工作量和维护量的增减。如果因为要实现这样一个小部件造成大量计算/大量代码的话,估计得考虑别的实现方式了……
实现
前端
代码
1 replies
•
1970-01-01 08:00:00 +08:00
Keinez
OP
Apr 29, 2013
1
Solved.
table-cell 大法……以前用过自己居然忘记了囧
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1001 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms ·
UTC 18:22
·
PVG 02:22
·
LAX 10:22
·
JFK 13:22
♥ Do have faith in what you're doing.
❯