本文介绍了如何从HTML中的链接中删除下划线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的页面中,我放了一些链接,我不想要任何行,所以,我怎样才能使用HTML删除它?

/ div>

版本:

 < a href =http://yoursite.com/style =text-decoration:none> yoursite< / a> 

但请记住,您通常您的网站内容() )。因此,您通常应该。



请参阅以使用。


In my page I have put some links under which I don't want any line, so, how can I remove that using HTML?

解决方案

Inline version:

<a href="http://yoursite.com/" style="text-decoration:none">yoursite</a>

However remember that you should generally separate the content of your website (which is HTML), from the presentation (which is CSS). Therefore you should generally avoid inline styles.

See John's answer to see equivalent answer using CSS.

这篇关于如何从HTML中的链接中删除下划线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 23:56
查看更多