列表属性基本语法list-style: type position image;子属性1. list-style-type(列表类型)无序列表 <ul>值说明disc实心圆(默认)circle空心圆square实心方块none无标记ul { list-style-type: disc; /* 实心圆 */ list-style-type: circle; /* 空...
2026年02月23日
列表属性基本语法list-style: type position image;子属性1. list-style-type(列表类型)无序列表 <ul>值说明disc实心圆(默认)circle空心圆square实心方块none无标记ul { list-style-type: disc; /* 实心圆 */ list-style-type: circle; /* 空...
2026年02月23日
letter-spacing 字间距基本语法letter-spacing: 间距值;常用单位1. px - 像素letter-spacing: 30px;2. em - 字符单位letter-spacing: 0.5em; /* 0.5个字符宽度 */ letter-spacing: 2em; /* 2个字符宽度 */3. normal - 默认值letter-spacing: no...
2026年02月23日
word-spacing 词间距基本语法word-spacing: 间距值;常用单位1. px - 像素word-spacing: 30px;2. em - 字符单位word-spacing: 2em; /* 2个字符宽度 */3. normal - 默认值word-spacing: normal; /* 浏览器默认,通常是0 */4. 负值 - 缩小间距word-spacing: -5...
2026年02月23日
text-align 文本对齐基本语法text-align: 对齐方式;属性值值说明left左对齐(默认)center居中对齐right右对齐justify两端对齐inherit继承父元素示例代码<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&...
2026年02月23日
line-height 行高基本语法line-height: 行高值;常用单位1. px - 像素line-height: 30px;2. 数值(推荐)line-height: 1.5; /* 字体大小的1.5倍 */ line-height: 2; /* 字体大小的2倍 */3. % - 百分比line-height: 150%; /* 字体大小的150% */ line-hei...
2026年02月23日