ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

2.2 文字与段落

2021-11-07 15:02:32  阅读:170  来源: 互联网

标签:段落 文字 weight text 元素 transform fout 2.2 font


字体

类型(font-family)

当第一个字体类型无法显示时,编译器才会用第二种

元素名{font-family:字体1,字体2,字体3……;}

大小(fout-size)

元素名{fout-size:像素值(px);}

粗细(fout-weight)

属性值数字值说明
lighter 100 较细
normal 400 正常(默认值)
bold 700 较粗
bolder 900 很粗
元素名{fout-weight:100;}
元素名{fout-weight:400;}
元素名{fout-weight:700;}
元素名{fout-weight:900;}

风格(font-style)

属性值说明
normal 正常
italic 斜体
oblique 斜体

有些特殊的字体可能用italic或oblique无法显示,所以出现互补的进行使用。

元素名{font-style:normal;}
元素名{font-style:italic;}
元素名{font-style:oblique;}

颜色(coloe)

元素名{coloe:red;}
元素名{coloe:#FFFFFF;}

段落

首行缩进(text-indent)

元素名{text-indent:像素值;}

水平对齐(text-align)

元素名{text-align:left;}左对齐(默认)
元素名{text-align:center;}居中
元素名{text-align:right;}右对齐

文本修饰(text-decoration)

元素名{text-decoration:none;}去除下划线(默认)
元素名{text-decoration:underline;}下划线
元素名{text-decoration:line-through;}中划线
元素名{text-decoration:overline;}顶划线

字母大小写(text-transform)

元素名{text-transform:none;}无变换(默认)
元素名{text-transform:uppercase;}大写
元素名{text-transform:lowercase;}小写
元素名{text-transform:capitalize;}首字母大写

行高(line-height)

元素名{line-height:像素值;}

间距

字母间距(letter-spacing)

元素名{letter-spacing:像素值;}

文字间距(word-spacing)

元素名{word-spacing:像素值;}

标签:段落,文字,weight,text,元素,transform,fout,2.2,font
来源: https://www.cnblogs.com/sm-zy/p/15519945.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有