gpt4 book ai didi

jquery 工具提示在我的网站上没有响应,但在 jsfiddle 中工作正常

转载 作者:行者123 更新时间:2023-11-28 11:09:30 24 4
gpt4 key购买 nike

谁能帮帮我..

这是我的 fiddle ..工作正常。

http://jsfiddle.net/supplement/j77eB/

现在当我像这样将我的代码发布到我的网站时...

<head>  

<script src="http://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.0/jquery-ui.js"></script>
<link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.0/themes/black-tie/jquery-ui.css" rel="stylesheet" type="text/css">

<style type="text/css">
label {
display: inline-block;
width: 5em;
}
.red {
color: red;
}
}
</style></head>

<script>$(function () {
$(document).tooltip({
content: function () {
return $(this).prop('title');
},
show: null,
close: function (event, ui) {
ui.tooltip.hover(

function () {
$(this).stop(true).fadeTo(400, 1);
},

function () {
$(this).fadeOut("400", function () {
$(this).remove();
})
});
}
});
});</script>

<p><a href="#" title="<span class='red'>This is a <a href='#'>link</a></span>">Tooltips</a> can be attached to any element.
When you hover the element with your mouse, the title attribute is displayed in a little box next to the element,
just like a native.</p>

这行不通...

我的链接有问题吗?

最佳答案

<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.0/themes/black-tie/jquery-ui.css"></script>

您正在将 CSS 文件作为 JS 进行引用。

推测你的意思是:

<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.0/jquery-ui.js"></script>

关于jquery 工具提示在我的网站上没有响应,但在 jsfiddle 中工作正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22082724/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com