访问和链接不符合

时间:2010-09-27 03:47:41

标签: html css

当我重新加载页面时,即使我访问过链接,链接也会变回粗体样式。如何使链接显示正确的样式?

CSS:

    .pname1 a {text-decoration:none;color:#444;}
    .pname1 a:link {margin-left:5px;font-weight:bold;}
    .pname1 a:visited {margin-left:5px;font-size:12px;font-weight:normal;}
    .pname1 {width:250px;height:60px;}
    a:hover {text-decoration:underline;}

HTML:

<td class="pname1">
<a href="javascript:sv(<?php echo $row['test']?>)" target="_self">
<?php echo 'test'?></a></td>

1 个答案:

答案 0 :(得分:0)

我的猜测是因为你实际上并没有链接到一个文件..相反,你正在调用一个javascript函数。您的浏览器使用浏览历史记录访​​问了链接。当您调用此javascript函数时,它不会在浏览器历史记录中创建条目。

相关问题