0

在此处输入图像描述

我正在开发一个面临高度自动问题的网站。这是我的网站链接,当我单击“牙医”类别时,您可以在左侧菜单上看到问题,滑动菜单会下降,但页面高度不会自动增加同样。我保持页面的高度自动仍然无法正常工作。如果有人有这个解决方案,那么尽快让我知道?

这是我正在使用的代码:

<script type='text/javascript' src='js/jquery.cookie.js'></script>
<script type='text/javascript' src='js/jquery.hoverIntent.minified.js'></script>
<script type='text/javascript' src='js/jquery.dcjqaccordion.2.7.min.js'></script>
<script type="text/javascript">
$(document).ready(function($){
                    $('#accordion-1').dcAccordion({
                        eventType: 'click',
                        autoClose: true,
                        saveState: true,
                        disableLink: true,
                        speed: 'slow',
                        showCount: true,
                        autoExpand: true,
                        cookie  : 'dcjq-accordion-1',
                        classExpand  : 'dcjq-current-parent'
                    });
                    $('#accordion-2').dcAccordion({
                        eventType: 'click',
                        autoClose: false,
                        saveState: true,
                        disableLink: true,
                        speed: 'fast',
                        classActive: 'test',
                        showCount: true
                    });
                    $('#accordion-3').dcAccordion({
                        eventType: 'click',
                        autoClose: false,
                        saveState: false,
                        disableLink: false,
                        showCount: false,
                        speed: 'slow'
                    });
                    $('#accordion-4').dcAccordion({
                        eventType: 'hover',
                        autoClose: true,
                        saveState: true,
                        disableLink: true,
                        menuClose: false,
                        speed: 'slow',
                        showCount: true
                    });
                    $('#accordion-5').dcAccordion({
                        eventType: 'hover',
                        autoClose: false,
                        saveState: true,
                        disableLink: true,
                        menuClose: true,
                        speed: 'fast',
                        showCount: true
                    });
                    $('#accordion-6').dcAccordion({
                        eventType: 'hover',
                        autoClose: false,
                        saveState: false,
                        disableLink: false,
                        showCount: false,
                        menuClose: true,
                        speed: 'slow'
                    });
});
</script>
<link href="css/skins/graphite.css" rel="stylesheet" type="text/css" />

<?php 
/****code for category list in feft menu*******/

$default = array('table' => 'category',
                            'fields' => '*',
                            'order' => 'CategoryId',
                            'sort' => 'ASC',
                            'limit' => "999999");
$arryfirst=$CommonObj->select($default);

?>
<div id="whole_category1">
        <div class="graphite demo-container">
<ul class="accordion" id="accordion-1">
         <?php if(!empty($arryfirst))
 { 
 foreach($arryfirst as $row1)
 {
         $catid = $row1['category']['CategoryId'];
         $actname = $row1['category']['Category'];    


     ?>

         <li><a href="ProductHome.php?catid=<?php echo $catid; ?>"><?php echo  $actname ; ?></a>    
         <ul> 
         <?php $default2 = array('table' => 'subcategory',
                            'fields' => '*',
                            'condition' => "CategoryId='$catid'",
                            'order' => 'CategoryId',

                            'limit' => "999999");
$arry2=$CommonObj->select($default2);
     if(!empty($arry2))
 { 
 foreach($arry2 as $row2)
 {  
         $sbcatid = $row2['subcategory']['SubCategoryId'];
         $sbctname = $row2['subcategory']['SubCategoryName'];    

    ?>
    <li ><a style="padding-bottom: 6px;padding-top: 5px;" href="ProductHome.php?sbcatid=<?php echo $sbcatid; ?>"> <?php echo $sbctname; ?></a></li>
   <?php } } ?>

</ul></li>

             <?php  }
 } ?>
</ul>


</div>
        <!-- <div class="sidebg2"></div>--> 
      </div>
4

3 回答 3

3

从 .demo-container 中删除高度属性

于 2013-10-30T08:19:12.867 回答
1

http://justus-new.bluecoresys.com/css/dcaccordion.css

在第 6 行中,您定义了 height:700px

你应该删除那个

于 2013-10-30T08:21:50.270 回答
0

只需删除 .demo-container 中的高度

.demo-container { 高度:700px; // 删除这个 }

于 2013-10-30T08:29:21.230 回答