duanhuihui2705 2013-07-28 10:00
浏览 31

php jquery包括不能很好地工作

I am stacked at one issue that drives me crazy. I made a left floating file tree view and I include my website. But When I include my web site my file treeview, My treeview does not be clickable[at chrome] also, int IE 9 my thumbnail part for viewing pdf document doesn not opened. Chrome is most important than my other my troubles.

Let me give me codes item id is my left menu.

<div id="item" style="float:left">
<?php include("leftmenu.php"); ?>
</div>

sample include method.

also sidebarOpenfile is file treeview show button.

<script type="text/javascript">
$(document).ready(function(){
$('#sidebarOpenfile').click(function()  
{

if ($('#item').css("height")=='0px')
{

    $('#item').animate({height:"700px"});
} 
else 
{

    $('#item').animate({height:"0px"});
}
 }); 
 }); 

Above 2 codes is in my main page (.php file).

Also my main page php file's css (#item part):

#item {
position:relative;
margin-left:0px;
float:left;
 top: 10px;
width: 200px;
height:0px;
bottom: 0px;
  background-color: hsla(0,0%,0%,.1);
  overflow:auto;
  display:inline-block;
}

Finally my leftmenu.php files codes

$(document).ready( function() {
    $('#leftmenu').fileTree({ root: '../', script:    'fileview/connectors/jqueryFileTree.php', folderEvent: 'click', expandSpeed: 750, collapseSpeed: 750, multiFolder: false }, function(file) { 
                alert(file);
            });
});

Thats all. And All file that is includes is valid and its working. My problem is

my problem

Thanks for helping..

  • 写回答

1条回答 默认 最新

  • duanpanzhu2910 2013-07-28 14:11
    关注

    Terrible Mistake :)

    I cant believe how I can miss.

    You're right putvande.

    All I need only changing z-index property.

    If anyone who have similar problem, they can solving with adding z-index property to their css file.

    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效