a 元素href属性值中url的下划线能去掉么?
如题~~源代码和网页中的分别都能去掉么? 1、可以,通过CSS,text-decoration属性即可去除代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TST</title>
<style>
.noLine {
/*去掉下划线*/
text-decoration: none;
color: blue;
}
</style>
</head>
<body>
<a href="https://ilovefishc.com/" target="">鱼C官网</a>
<br>
<a class="noLine" href="https://ilovefishc.com/" target="">鱼C官网</a>
</body>
</html>
好的,多谢!!
页:
[1]