加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

jquery slidedown和slideup wiggles div

发布时间:2020-12-14 22:55:39 所属栏目:资源 来源:网络整理
导读:http://eusville.com/eusVote/1/baltimore-sushi 点击“添加评论/费率”按钮.当评论框向下滑动时,页面会摇摆不定.非常难过.用Google搜索但无法找到解决方案. 奇怪的是问题在于Chrome和Firefox. IE工作顺利 HTML div是:对不起,那里有很多剃刀的东西.只是忽略

http://eusville.com/eusVote/1/baltimore-sushi

点击“添加评论/费率”按钮.当评论框向下滑动时,页面会摇摆不定.非常难过.用Google搜索但无法找到解决方案.

奇怪的是问题在于Chrome和Firefox. IE工作顺利……

HTML div是:…对不起,那里有很多剃刀的东西.只是忽略@s …

jQuery上下滑动这个Div.

提示赞赏! TIA.

$(".buttonAddCommentRate").click(function () {    
    var crBox = $(this).closest('.answer-container').find('.answer-commentRateBox');    
    var buttonText = $(this).text();

    if (buttonText == 'Add comment/rate') {
        crBox.slideDown(300);
        $(this).text('Cancel comment/rate');
    }
    else {
        crBox.slideUp(300);
        $(this).text('Add comment/rate');
    }
});
.answer-comment{
    width:600px;
         float: left;
}
.answer-textArea{
    width: 500px;
    height: 180px;     
}

.answer-commentRateBox{
   display:none;
   overflow: hidden;   
}