作者:weixin_38930535的 字体:[增加 减小] 来源:互联网 时间:2017-11-06
<div class="tipWords"></div>
css
position:fixed; top: 70%; left: 50%; transform: translate(-50%, -50%);
ps:这里是左右居中,上下居中的话,把top也改成50%即可。这是定位的,不是定位的可以把left和top改成margin值就可以了。