html设置文字居中 样式表: text-align:center; 原来: <text class="titletext">WEB</text> 不居中 之后: <p class="titletext">WEB</p> 就居中了