在 CSS 中,要给 a 标签添加下划线,可以使用 text-decoration 属性。text-decoration 属性定义文本的修饰,例如下划线、删除线等。下面是一个例子:html &
html <p>这是一个链接:<a href="#">点击这里</a></p>
css a { text-decoration: underline; }
css a { text-decoration: none; }
css a { text-decoration: line-through; }
css a { text-decoration: underline line-through; }
粉丝
0
关注
0
收藏
0