如何去掉html中的超链接

如题所述

去掉html的超链接,用到的工具如下:Dreamweaver,步骤如下:

    用Dreamweaver打开html文件,切换到设计视图下,选中要去掉超链接的文字或者图片,然后把对应的连接删除就去掉了超链接。

2.从代码视图下去掉超链接,以链接到工信部网站为示例,代码如下:

<a href="http://www.miitbeian.gov.cn/" target="_blank">粤ICP备111111号-1</a>

说明:去掉<a href="http://www.miitbeian.gov.cn/" target="_blank"></a>超链接就去掉了。

温馨提示:答案为网友推荐,仅供参考
第1个回答  2016-11-09
“页面属性”——“链接”——“下划线样式”——“始终无下划线”
完整CSS
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
第2个回答  2016-11-09

<!DOCTYPE HTML>

<html>

    <head>

    <title>

去掉html中的超链接

</title>

<meta charset="UTF-8">

<script type="text/javascript">

window.onload=function(){

var oATag=document.getElementsByTagName('a');

for(var i=0; i<oATag.length; i++){

oATag[i].href='javascript:;';

}

}

</script>

    </head>

<body>

<a href="http://www.seeposh.cn/">seeposh</a>

<a href="http://www.seeposh.cn/">seeposh</a>

<a href="http://www.seeposh.cn/">seeposh</a>

<a href="http://www.seeposh.cn/">seeposh</a>

<a href="http://www.seeposh.cn/">seeposh</a>

<a href="http://www.seeposh.cn/">seeposh</a>

<a href="http://www.seeposh.cn/">seeposh</a>

<a href="http://www.seeposh.cn/">seeposh</a>

</body>

</html>

第3个回答  2016-11-08
如果用js去掉的话,$("a").removeAttr("href");
第4个回答  2016-11-09
请举个栗子!要不我无从下口!
相似回答