简单教程
提交运行
代码编辑器:
<!DOCTYPE html> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.bootcss.com/foundation/5.5.3/css/foundation.min.css"> <h2>文本对齐</h2> <p><code>.medium-text-center</code> 类设置宽度大于 40.0625em 尺寸屏幕居中对齐。重置浏览器大小查看效果。</p> <p class="medium-text-center" style="color:red;">居中对齐文本</p>
运行结果: