css样式设置⽂本,⽂本阴影修饰字体缩进。字体类,样式,设
置字体,字体变形,引⽤字体
/* ⽂本类  */
/* ⽂本阴影/
/ text-shadow:3px 3px 3px red; */
/* 第⼀个值  X轴偏移量(加负号为反向)
第⼀个值  y轴偏移量(加负号为反向)
第⼀个值模糊值,值越⼤越模糊
第⼀个值颜⾊ */
p:nth-of-type(1) {
text-shadow: 3px 3px 3px red;
}
/* 盒⼦阴影/
/ box-shadow: 2px 2px 2px  brown; */
/* ⽂本修饰
text-decoration: overline
overline顶划线
underline下划线
line-through中划线/删除线
none⽆/取消下划线 */
/* 只能显⽰⼀种划线*/
p:nth-of-type(2) {
text-decoration: overline;
/* text-decoration: underline; /ps软件怎么添加字体样式
/ text-decoration: line-through; */
}
/* ⽂本字体
text-transform: lowercase;
lowercase 所以⽂本⼩写字母
uppercase 所以⽂本⼤写字母
capitalize 所以⽂本⼩写字母
*/
p:nth-of-type(3) {
text-transform: uppercase;
}
/* ⽂本缩进
text-indend:3em;
第⼀个⽂字向后缩进
⾏⾼
line-height:2;
词间距
word-spacing:10px;
字间距
letter-spacing;
*/
p:nth-of-type(4) {
list-style: height 5px;
letter-spacing: 4px;
}
/* 字体类 */
/* 字体的粗细/
/ font-weight:normal;
font-weight:bild;
font-weight:boeder;
*/
p>:nth-of-type(5) {
font-weight: bold;
}
/*
字体样式
font-style:normal
font-style:italic  斜体
font-style:inherit
*/
p:nth-of-type(6) {
font-style: italic
}
/* 设置字体
font-family:"sans-sertf"
font-family:Cambridge cochin Georgian;
当浏览器没有第⼀个字体时就使⽤第⼆个。以此类推。要是都没有就使⽤浏览器默认字体 */
/* 字体变形
font-variant:normal
font-variant:inherit
font-variant:small-caps
*/
/* 引⽤字体
最开始写
@font-face /
/ 1 吧引⽤的字体放到站内每⼀种字体间⽤逗号隔开
2 @font-face
3  添加声明块
设置字体的名字
font-family:“⾃定义”
引⽤字体⽂件的地址
书写格式 src:url(“字体⽂件地址”)
@font-face:"f75";  “设置字体的名字为“f75”
添加字体地址 */
@font-face {
font-family: "f75";
src: url(./zt/Fonts/f);
}

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。