我就是这样使用的。
HTML
<h1>text</h1>
CSS
h1 { text-align: center; }
In Chrome一切正常,但与左侧对齐Safari。为什么在 Safari 中会发生这种情况?
对于野生动物园
text-align: -webkit-center;