文本装饰 :css1 2不同 去Mozilla看
style
underline
overline
line-through
1.默认黑色
text-decoration: underline ;
2.有颜色\形式:
text-decoration-line:underline;
text-decoration-color: red;
text-decoration-line: dashed;
扫描二维码关注公众号,回复:
4176378 查看本文章
//行高:line-height 1.行间距 2.行高
文字下有基准线,上为上划线,相邻两行间距为行间距
line-height:
border:
<span></span>
<span></span>
点第一行 按alt键,点第二行,可以依次输入两行一样的<br>换行
50px 第一行也下来了
字母间距和单词间距
letter-spacing:
word-spacing:
汉字间距 letter
水平和垂直方向的对齐方式
水平:居左 中 右 两端对齐,默认左
text-align:left right center 左对齐右边空白大 justify
垂直:默认底部对齐
vertical-align:top middle bottom 还有其他不常用
设置的是图片怎么和文字对齐,行高
//文本缩进和阴影
texe-indent:1em/30px; 首行多少空格
text-shadow:10px向右偏移距离 20px向下偏移距离 0模糊程度 red; 大小会和文字大小一起变
17-20