-2

我在 Windows 上加载的代码:

$(".directoryMedia ul li").prepend("<a href='#' class='RemoveProjectImage' title='Remove from Project'></a>");

在 Firefox 上效果很好

4

1 回答 1

0

Your string concatenation is not correct, also there is not text display in the link

$('.directoryMedia ul li').prepend("<a href='#' class='RemoveProjectImage' title='Remove from Project'>test content</a>");

Demo: Fiddle

于 2013-04-26T16:48:42.570 回答