{ position : fixed; top : 50%; left : 50%; transform : translate(-50%, -50%); }
转载请标注来源:https://www.cnblogs.com/qqcc1388/p/13180384.html