居中

以下范例中,我们使用了 positioning 和 transform 属性来设置水平和垂直居中:

我是水平和垂直居中的。

注意: IE8 及更早版本不支持 transform 属性。