简体   繁体   English

高度自动功能在左侧菜单中不起作用

[英]Height auto is not working in left side menu

在此处输入图片说明

I am developing a website in which a am facing height auto problem .here is my website link ,where you can see the problem on left side menu when i click on "Dentists" category the sliding menu goes down but page height is not increasing auto as well.i kept height auto of my page still its not working. 我正在开发一个网站,该网站面临着高度自动问题。这是我的网站链接 ,当我单击“牙医”类别时,您可以在左侧菜单上看到问题,滑动菜单会下降,但页面高度不会自动增加以及。我保持页面的高度自动仍然不起作用。 if anyone have this solution then let me know as soon as possible ? 如果有人有此解决方案,那么请尽快告知我?

Here is my code which i am using for it : 这是我正在使用的代码:

<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>

从.demo-container删除高度属性

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

in line 6 you define height:700px 在第6行中,您定义height:700px

you should get delete of that 你应该删除那个

just remove the height in .demo-container 只需删除.demo-container中的高度

.demo-container { height: 700px; .demo-container {高度:700px; // remove this } //删除此}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM