Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 第二个引导选项卡中的按钮闪烁_Jquery_Html_Css_Button_Twitter Bootstrap - Fatal编程技术网

Jquery 第二个引导选项卡中的按钮闪烁

Jquery 第二个引导选项卡中的按钮闪烁,jquery,html,css,button,twitter-bootstrap,Jquery,Html,Css,Button,Twitter Bootstrap,我在引导选项卡中集成了一个浮动按钮。第一个选项卡工作正常,但第二个选项卡的按钮在向下滚动到底部时闪烁。您可以在这里检查测试html 网址: 引导101模板 $(文档).ready(函数(e){ var stickyNavBottomval2=$('.edit_profile_save').offset().top; var stickyNav_bottom=函数(){ var scrollBottom2=$(窗口).scrollTop()+$(窗口).height(); 如果(scrollBo

我在引导选项卡中集成了一个浮动按钮。第一个选项卡工作正常,但第二个选项卡的按钮在向下滚动到底部时闪烁。您可以在这里检查测试html

网址:


引导101模板
$(文档).ready(函数(e){
var stickyNavBottomval2=$('.edit_profile_save').offset().top;
var stickyNav_bottom=函数(){
var scrollBottom2=$(窗口).scrollTop()+$(窗口).height();
如果(scrollBottom2
  • 第1节内容统计。第1节内容统计

    第2节内容统计

    .按钮{宽度:280px;高度:70px;} .subnav editprofile粘条底部{ 边框底部:0无; 保证金底部:59px!重要; 位置:固定; 底部:0; 宽度:66.5%; 文本对齐:居中; z指数:100; } .subnav editprofile鳍粘条底部{ 边框底部:0无; 保证金底部:59px!重要; 位置:固定; 底部:0; 宽度:45.5%; 文本对齐:居中; z指数:100; }
    当您在第一个选项卡中时,您的html div如下所示:

    <div class="float_bottom_div_s2 subnav-editprofile-sticky-bar-bottom"> 
        <input type="submit" class="float_button button" value="Submit">
    </div>  
    
    
    
    当您单击第二个选项卡时,您的html类似于:

    <div class="float_bottom_div_s2 edit_profile_save_pre subnav-editprofile-sticky-bar-bottom"> 
        <input type="submit" class="float_button button" value="Submit">
    </div>  
    
    
    

    因此属性“编辑\u配置文件\u保存\u预”单击第二个选项卡时不应添加。

    请给我们看一些代码。我已将代码添加到问题中。我尝试了你的答案,但没有成功…我还注意到你的代码与我的代码相同。此外,你还漏掉了点。@AnoopChandran在你的css中你给出的位置:修复了这就是为什么会发生的原因,我已从中删除了该css行检查元件,然后您的问题已解决。请参阅更新的css,因为我已删除该部分代码。如果我删除css“位置:已修复”然后按钮不会浮动…它只是位于底部…这不是必需的功能…提交按钮在第一个选项卡中工作正常…问题在第二个选项卡中。@AnoopChandran当您单击button类“edit\u profile\u save\u pre”div中的第二个选项卡时,我发现了您的问题添加了该问题,因此请删除该类属性。查看我的更新答案。@dhavalbharadva…如果删除“编辑配置文件保存”类,闪烁的问题将停止,但提交按钮不会像第一个选项卡那样位于底部。如果可能,请为我提供一个链接以查看您的解决方案。
    <div class="float_bottom_div_s2 edit_profile_save_pre subnav-editprofile-sticky-bar-bottom"> 
        <input type="submit" class="float_button button" value="Submit">
    </div>