<style>
.font{
font-size:12px;
color:red;
font-weight: border;
font-family:Microsoft YaHei,宋体,arial, helvetica,PingFang SC,, sans-serif;
font-style:italic;
text-decoration:underline;
text-shadow:orange -2px 2px 2px;
text-align: center;
line-height:100px ;
}
color设置文字的颜色
font-size 设置字体的大小
font-weight 设置字体加粗效果 可以是数值(100 200 300——900 700以下是变细 700以上为加粗)
font-family 设置网页字体
font-style 设置字体样式 字体倾斜....
text-decoration:underline; 设置文字装饰 下划线,上划线,去除超链接的下划线
text-shadow:orange -2px 2px 2px; 设置文字阴影 阴影颜色 水平位置 垂直位子 阴影模糊度
text-align: center;文字水平居中 right 设置靠右 left 设置靠左
line-height 设置上下文字居中 数值必须为盒子的高度
文字样式表
最新推荐文章于 2024-05-28 12:36:33 发布