从我的分页代码中移除显示:none不知道它的来源

时间:2015-08-05 09:17:11

标签: css

<div class="clear">
    </div>
<div align =center  style ="display: inline !important;" ><?= $pagination?>       </div>

它在检查元素中显示

element.style {
display: none;
}

我不知道它采取这种风格

这是创建问题的脚本

<script>
    $(document).ready(function() {
$("#sbox2").hide();
 $("#content div").hide(); // Initially hide all content
$("#tabs li:first").attr("id","current"); // Activate first tab
$("#content div:first").fadeIn(); // Show first tab content

$('#tabs a').click(function(e) {
    var tname=$(this).attr('name');

    e.preventDefault();
    if ($(this).closest("li").attr("id") == "current"){ //detection for current tab
     return
    }
    else{
    $("#content div").hide(); //Hide all content
    $("#tabs li").attr("id",""); //Reset id's
    $(this).parent().attr("id","current"); // Activate this
    $('#' + $(this).attr('name')).fadeIn(); // Show content for current tab
    }
});



});
</script>

1 个答案:

答案 0 :(得分:0)

Tyr this

PHP/HTML
<div align=center id="pagination"  style ="display: inline !important;" > <?= $pagination?> </div>

的JavaScript

$("#content div").hide(); //replace with below script
$("#content div:not('#pagination')").hide(); //use this