文本格式化:
选择字体: font-family : Arial;
font-family : Arial, Helvetica, sans-serif;
font-family : "Times New Roamn", times, serif;
文本颜色: color : #3E8988;
color : rgb(100%, 100%, 100%);
color : rgb(255, 255, 255);
字号: font-size : 1em;
font-size : 36px; //注意数字和单位间不能有空格
font-size : large; // 关键字有: xx-large, x-large, large, medium, small, x-small, xx-small
font-size : 200%;
格式: font-style : italic; // 斜体
font-style : normal // 非斜体
font-style : oblique; // 斜体
font-weight : bold; // 粗体
font-wight : normal; // 非粗体
大小写: text-transform : uppercase; // 属性可选: lowercase , capitalize
text-transform : none;
小型大写: font-variant : small-cape;
文本修饰: text-decoration : underline; // underline, overline, line-through, blink
text-decoration : underline, overline;
text-decoration : none;
字母间距和字间距
letter-spacing : -1px;
letter-spacing : 10px;
word-spacing : 2px;
CSS学习笔记--文本格式化
最新推荐文章于 2023-02-28 05:15:00 发布