怎么去hyperlink下划线

来源:百度知道 编辑:UC知道 时间:2024/05/31 03:16:39
我是在有母板的网页里添加了gridview里添加了hyperlink列。
我想加这串代码 但是没有<head> 也没有<body> 应该怎么弄啊现在 ??

<style type="text/css">
<!--
a:link { text-decoration: none;color: blue}
a:active { text-decoration:blink}
a:hover { text-decoration:underline;color: red}
a:visited { text-decoration: none;color: green}
-->
</style>

去下划线,你把以下代码覆盖你原来的试试
a:visited { text-decoration: none;color: green}
a:hover { text-decoration:underline;color: red}
a:link { text-decoration: none;color: blue}

可以用我这个方法:

在母版页的页头加下面代码,就可以在内容页中加css和js:
<head id="Head1" runat="server">
<asp:contentplaceholder id="header" runat="server"></asp:contentplaceholder>
</head>
-------------------------------------------------------------------
内容页用例子:
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">
<link href="Styles/fz_cl_sy.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
function g(o){
return document.getElementById(o);
}
function HoverLi(n){
for(var i=0;i<=3;i++){g('tb_&#