<!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <title>文本属性</title> <style > .xiaofan { width: 200px; height: 200px; background-color: forestgreen; } .xiaofan{ font-size: 40px;/*大小*/ font-style: inherit;/*样式*/ font-family: 仿宋 ;/*字族*/ color: black;/*颜色*/ } .xiaofan{ line-height: 200px;/*行高*/ text-decoration: inherit;/*文本划线*/ text-align: center;/*文本水平位置*/ } </style> </head> <body> <div class="xiaofan"> 文本编辑 </div> </body> </html>
Web前端 字体样式
最新推荐文章于 2024-05-02 18:27:43 发布