要使用CSS的text-align属性,你需要在样式表中为相应的元素设置该属性。如果你想让一个段落(p)居中对齐,你可以这样写:,,``css,p {, text-align: center;,},`` CSS中text-align属性的用法 基本语法 text……