a:hover bug display in IE6

Just a small style problem.

<a>sample text</a>


If its style like this:
a:hover{text-decoration: underline;}

,the underline won't show up in IE6.
Because this hyperlink doesn't contain href attribute within it.

The solution is adding href attribute in it, just like this:
<a href="javascript:void(0)">sample text</a>


I found this problem long ago, and met it today, so just take it down.

Best Regards

你可能感兴趣的:(html,css,UP)