7.(初级)web字体之:装饰文本

    xiaoxiao2021-03-26  24

    一、粗体font-weight

    font-weight:normal/bold/100~900

    修饰文本

    text-decoration:underline/overline/line-through/none

    文本阴影:text-shadow:x(x向偏移值) y(y向偏移值) 模糊距离 #颜色

    例如:

    text-shadow:4px 4px 3px #999;

    text-shadow:-4px 4px 3px #999, 1px 1px 2px #000;(可叠加)

    三、文本字间距、词间距、行间距、首行缩进

    字间距:letter-spacing:px/em/%

    词间距:word-spacing:px/em/%

    行间距:line-height:px/em/%/num(1.5相当于1.5em)

    首行缩进:text-indent:px/em/%

    四、文本简写

    font:font-style font-weight font-size/line-height font-family

    例如:

    font:italic bold 18px/1.5 Times, Arial;

    转载请注明原文地址: https://ju.6miu.com/read-663433.html

    最新回复(0)