行内内容的水平对齐方式。
<div class="ta"><p class="c">居中的标题</p><p>默认左对齐的正文,用来对比效果。</p></div>
.ta { width: 220px; font-size: 12px; color: #2f3846; } .ta p { margin: 0 0 8px; } .ta .c { text-align: center; font-weight: 700; color: #0d1117; }