记住<!-- //-->用于防止JavaScript代码在较低版本的IE中显示.任何人都可以提供文章的链接来解释这个?难以<!--在Google中搜索" ",因为它已被剥离.
我们还需要在JavaScript块中使用它吗?
谢谢!
我有一个标题链接,如下所示,
<a href="#">Cat<span class="more">See More</span></a>
Run Code Online (Sandbox Code Playgroud)
你看我在里面是为了向右边流动"看到更多",所以我有以下css
.more {float:right;}
a{text-decoration:none;width:150px;display:block;}
a:hover {text-decoration:underline;}
Run Code Online (Sandbox Code Playgroud)
我希望当我将鼠标悬停在文本"Cat"上时,"See More"会加下划线,但它在IE/Firefox中不起作用,但它可以在Chrome中使用.
谁知道为什么?