前端学习(十九) 文本一(css)

文本样式

文字大小:font-size

文字样式:font-family

字体加粗:font-weight

字体倾斜:font-style

行高:line-height:2em

合并:

font:[[<font-style>||<font-variant>||<font-weight>||<font-stretch>]?<font-size>[/<line-height>]?<font-family>]|caption|icon|menu|message-box|small-caption|status-bar

斜体||不常用||加粗||不常用?字体大小,行高,字体样式

其中font-size和font-family必须有


color,字体颜色

text-decoration,下划线

text-align,字体对齐

vertical-align,垂直居中对齐

text-indent,首字母缩进

white-space,显示代码格式


word-space,自动换行

word-warp,

word-break,


文字阴影

text-shadow:


当文字写不下出现....

text-overflow:ellipsis;

overflow:hidden;

white-space:nowrap;


按钮移动上去显示手

cursor:[uri,]*

uri可以是一张图片,可以写多个,多个的时候就是前门一个不生效时显示后面一个

猜你喜欢

转载自blog.csdn.net/zy21131437/article/details/80865762