```cssa { textdecoration: none;}```
```cssa.nounderline { textdecoration: none;}```
```html链接文本```
一、使用text-decoration属性去除下划线
```css
text-decoration: none;
二、使用伪类选择器控制下划线显示
```css
text-decoration: none;
a:hover, a:active {
text-decoration: underline;
```css
text-decoration: none;
color: inherit;