点击运行
居中
在此例中,我们使用 position 和 transform 属性将 div 元素垂直和水平居中:
我是垂直和水平居中。
运行结果