第四章-通过CSS控制字体样式

一.通过CSS控制文本样式:

    ①设置字体

第四章-通过CSS控制字体样式

    ②定义行高

    {line-height:数值}(例如:{line-height:50px;}

    ③定义下划线,顶划线,删除线

    {text-decoration:inherit|none|underline|overline|line-through|blink}

    ③设置字体间距

    {letter-spacing:数值}(单位ex或者em)

    ④控制字体对齐方式

    {text-align:left|right|center|justify}

二.通过CSS定义样式表

    ①定义无序列表

        {list-style-type:disc|circle|square|none}

    ②定义有序列表

    {list-style-type:decimal|lower-roman|upper-roman|lower-alpha|upper-alpha|none}

三.CSS新增文本属性

    ①text-shadow:h-shadow v-shadow blur color;

    ②text-overflow:clip|ellipsis|ellipsis-word

    ③word-wrap:normal|break-word

    ④content:normal|string|attr()|uri()|counter()

你可能感兴趣的:(第四章-通过CSS控制字体样式)