工程技术 | 酒店管理 | 酒店筹建 | 酒店开业 | 案例分析 | 酒店贴图 | 学习园地 | 有问必答 | 酒店人才 |
新手必读 诚聘版主 如何快捷的进入本站 本站QQ及MSN交流群
发新话题
打印

链接下划线取消

链接下划线取消

一、
插入<head>…………</head> 

<style>B {font-weight: 700; }
   P {padding: 5px 0px;
     margin: 0px;
     font-family: 宋体,黑体,宋体;
    }
   A {text-decoration: none}
   TD { font-family: 宋体,黑体,宋体; }
  </style>
  <script language="javascript">
   var contents = true;
  </script>

A: 用CSS来实现:
以下代码加入<head>与</head>之间
<style type="text/css">
<!--
a:link { text-decoration: none}
a:visited { text-decoration: underline}
a:hover { text-decoration: none}
-->
</style>
其中a:link 表示一般的链接样式;a:visited 表示已访问过的链接样式;a:hover 表示鼠标经过时的链接样式。text-decoration: none 表示无下划线,text-decoration: underline 表示有下划线。

如果三种链接状态的样式相同,也可以简化为:
<style type="text/css">
<!--
a { text-decoration: none}
-->
</style>

三、如果插入后,去掉</style>则全页不显示。

TOP

欢迎加入聆风岛分享您的观点和智慧,加入后会更精彩。
发新话题