Javascript 可以数一数吗?
我很好奇,能数一数吗?因为我有一个问题,当我将其悬停并向外悬停多次,然后选择其中一个项目时,按钮将按到底部,无法看到。或者这是解决这个问题的另一种方法 更新 没有几次,即使我在里面和外面徘徊,然后再徘徊,它也会推到底部 JSJavascript 可以数一数吗?,javascript,jquery,html,css,Javascript,Jquery,Html,Css,我很好奇,能数一数吗?因为我有一个问题,当我将其悬停并向外悬停多次,然后选择其中一个项目时,按钮将按到底部,无法看到。或者这是解决这个问题的另一种方法 更新 没有几次,即使我在里面和外面徘徊,然后再徘徊,它也会推到底部 JS 最后我找到了解决这个问题的方法 $("#popup_survey_whitebox").hover(function () { $('#popup_survey_whitebox_content').finish().animate({
最后我找到了解决这个问题的方法
$("#popup_survey_whitebox").hover(function () {
$('#popup_survey_whitebox_content').finish().animate({
opacity: 1,
height: "toggle"
}, 500, function () {
$("label#popup_survey_label_title").text(orig); // Here put the original text.
}).css('position', 'relative');
}, function () {
$('#popup_survey_whitebox_content').finish().animate({
opacity: 1,
height: "toggle"
}, 500, function () {
$("label#popup_survey_label_title").text(newText); // Here put the new text with "..."
}).css('position', 'relative');
});
更改$'popup\u survey\u whitebox\u content'。停止到$'popup\u survey\u whitebox\u content'。完成两个动画无法复制提到的问题?@Mritunjay你的意思是什么?你的问题不清楚。你到底看不到什么?什么按钮被推到底?在您提供的小提琴中看不到这种效果。@Aditya当选择一个项目时,按钮将显示。你试过选择吗?是的,试过了,所以你想显示finish按钮?
$("#popup_survey_whitebox").hover(function () {
$('#popup_survey_whitebox_content').finish().animate({
opacity: 1,
height: "toggle"
}, 500, function () {
$("label#popup_survey_label_title").text(orig); // Here put the original text.
}).css('position', 'relative');
}, function () {
$('#popup_survey_whitebox_content').finish().animate({
opacity: 1,
height: "toggle"
}, 500, function () {
$("label#popup_survey_label_title").text(newText); // Here put the new text with "..."
}).css('position', 'relative');
});