Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
即使在重新调整大小时,我也想使 div 精确地位于屏幕中心。我试过left:calc(55% - <width in px>);了,但它在 Safari 中不起作用。
left:calc(55% - <width in px>);