Javascript 在鼠标上方显示文本

Javascript 在鼠标上方显示文本,javascript,jquery,css,Javascript,Jquery,Css,所以我试图让背景图像消失,然后在div中显示一些带有链接的文本。我已经让图像在鼠标上方消失,但无法显示文本。这是我到目前为止得到的。我对这东西有点陌生 /* I'm have the image removed with the first line, then setting the link as hidden then trying to make it visible, but the link never shows */ $('#res').mouseover(functio

所以我试图让背景图像消失,然后在div中显示一些带有链接的文本。我已经让图像在鼠标上方消失,但无法显示文本。这是我到目前为止得到的。我对这东西有点陌生

/* I'm have the image removed with the first line, then setting the link
   as hidden then trying to make it visible, but the link never shows */

$('#res').mouseover(function(){
  $(this).removeClass('resume');
  $('#reslink').css(visibility,visible);
});
HTML:


如果需要更多信息,lmk,谢谢。

可能只是输入错误:
\reslink
\reslin

可能只是输入错误:
\reslink
\reslin

而不是

$('#reslink').css(visibility,visible)
试一试

而不是

$('#reslink').css(visibility,visible)
试一试

你在锚上的id是“reslin”而不是“reslink”

试试这个:

 $('#reslin').css("visibility", "visible");
 or
 $('#reslin').css("display", "block");
你在锚上的id是“reslin”而不是“reslink”

试试这个:

 $('#reslin').css("visibility", "visible");
 or
 $('#reslin').css("display", "block");
 $('#reslin').css("visibility", "visible");
 or
 $('#reslin').css("display", "block");