text-decoration用于设置文字的装饰线
- decoration是装饰/装饰品的意思;
text-decoration有如下常见取值:
none
:无任何装饰线
✓ 可以去除a元素默认的下划线underline
:下划线overline
:上划线line-through
:中划线(删除线)
a元素有下划线的本质是被添加了text-decoration属性
text-decoration用于设置文字的装饰线
text-decoration有如下常见取值:
none
:无任何装饰线underline
:下划线overline
:上划线line-through
:中划线(删除线)