网易微专业-页面制作-文本

1、font-size 字体大小

2、font-family 字体格式

3、font-weight 加粗

4、font-style : normal | italic | oblique

5、line-height 字体高度:
normal | <number> | <length> | <percentage>

<number>与<percentage>区别: percentage是先计算再继承(给自身font-size),percentage=300%时,line-height为30px(body的font-size值)*3=90px number则直接继承,number=3时,line-height=16px(自身font-size值)*3=48px

6、font :
[<font-size> || <font-weight> ] ? <font-size> [/<line-height>] ? <font-family>

Paste_Image.png

7、vertical-align 垂直对齐

Paste_Image.png

8、text-indent 首行缩进 :
<length> | <percentage>

Paste_Image.png

9、white-space :
normal | nowrap | pre | pre-wrap | pre-line

Paste_Image.png

10、word-warp :单词换行
nomal | break-word

11、word-break :
normal | keep-all | break-all

Paste_Image.png

12、text-shadow :
none | [<length> {2,3} && <color>? ]#

length第三个值是模糊半径 颜色不写则默认为文字颜色

13、text-decoration :
none | [underline || overline || line-through]

14、text-overflow:
clip | ellipsis

Paste_Image.png

15、cursor

Paste_Image.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容