CSS中可以使用text-decoration属性来添加下划线到文本中。指定下划线属性值为 underline ,可以增加下划线: { text-decoration: underline; } 属性
CSS中可以使用text-decoration属性来添加下划线到文本中。
指定下划线属性值为"underline",可以增加下划线:
{ text-decoration: underline; }
属性值"none"可以去除下划线:
{ text-decoration: none; }
如果要将下划线改变为其他装饰线,例如中线、虚线、波浪线等:
{ text-decoration: overline; /* 中线 */ text-decoration: line-through; /* 删除线 */ text-decoration: underline dotted; /* 虚线 */ text-decoration: underline wavy; /* 波浪线 */ }
如果想要改变下划线颜色:
{ text-decoration: underline; text-decoration-color: red; }
粉丝
0
关注
0
收藏
0