jquery tree 上不能添加<a ..></a>连接,帮忙看看代码?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>使用指南</title>
       
        <link rel="stylesheet" type="text/css" href="jquery-lib/themes/default/easyui.css"  />
        <script type="text/javascript" src="jquery-lib/jquery-1.4.2.min.js" ></script>
        <script type="text/javascript" src="jquery-lib/jquery.easyui.min.js" ></script>        
        <script type="text/javascript">
            $(function(){
                $("#tt").tree();    
            });
        </script>
   <style type="text/css">

*{margin:0; padding:0; font-family: Arial,Sans-serif; list-style-image: none;}
p,var,a,strong,div,dl,dd,ol,span,input{font-size:12px;}
a{text-decoration:none; color:#000; }
a:hover{cursor:pointer; display:block; color:#000;}
a img{border:0;}
a{border:none; display:block; }
em{font-style:normal;}
ul{list-style-type:none; padding:0;}
.clear{clear:both;}

#header {height:100px; border:1px solid #ccc; background: url(img/header_bg.jpg) repeat-x; }

#sidebar{width:220px;   float:left; border:1px solid #ccc; margin-left:10px; margin-top:5px; padding-top:5px;}
#contents{width:710px; float:left; margin-left:10px; margin-top:5px; border:1px solid #ccc;}
#bottom{height:50px; background: #4ac1f2; margin-top:5px; padding-top:25px;}
.p_bot{margin-left:200px; color:#fff; font-size:14px; }

        </style>
    </head>
    
    <body>
        <div id="header">
            <img src="img/top.gif" />
        </div>
        <div id="sidebar">
            <div id="mytree" style="width:218px; float:left;"> 
                 <ul id="tt">
                    <li>
                    <span>帮助文档</span>
                    <ul>
                        <li>
                            <span>PC版本帮助文档</span>
                            <ul>
                                <li>
                                    <span>部署文档</span>
                                    <ul>
                                        <li>
                                            <span>服务器端</span>
                                             <ul>
                                                <li>
                                                    <span>Windows平台</span>
                                                </li>
                                                <li>
                                                    <span>Linux平台</span>
                                                </li>
                                                
                                            </ul>
                                        </li>
                                        <li>
                                            <span>客户端</span>
                                            <ul>
                                                <li>
                                                    <span>安装</span>
                                                </li>
                                            </ul>
                                        </li>
                                    </ul>
                                </li>
                                <li>
                                    <span>使用说明</span>
                                    <ul>
                                        <li>
                                            <span>服务器端</span>
                                            <ul>
                                                <li>
                                                    <span>企业管理器</span>
                                                </li>
                                                <li>
                                                    <span>系统管理器</span>
                                                </li>
                                            </ul>
                                        </li>
                                        <li>
                                            <span>客户端</span>
                                            <ul>
                                               <li>
                                                    <span>软件简介</span>
                                                </li>
                                                <li>
                                                    <span>登录</span>
                                                </li>
                                                <li>
                                                    <span>好友</span>
                                                     <ul>
                                                        <li>
                                                            <span>好友操作</span>
                                                            <ul>
                                                                    <li>
                                                                         <span>发送消息</span>
                                                                    </li>
                                                                    <li>
                                                                         <span>查看资料</span>
                                                                    </li>
                                                                    <li>
                                                                         <span>修改备注</span>
                                                                    </li>
                                                                    <li>
                                                                         <span>删除好友</span>
                                                                    </li>
                                                                    <li>
                                                                         <span>移动好友至</span>
                                                                    </li>
                                                             </ul>   
                                                         </li> 
                                                         <li>
                                                            <span>好友组操作</span>
                                                            <ul>
                                                                    <li>
                                                                         <span>添加分组</span>
                                                                    </li>
                                                                    <li>
                                                                         <span>删除分组</span>
                                                                    </li>
                                                                    <li>
                                                                         <span>重命名分组</span>
                                                                    </li>
                                                                    
                                                            </ul>   
                                                         </li>             
                                                       
                                                    </ul>
                                                </li>
                                                <li>
                                                    <span>群/讨论组</span>
                                                    <ul>
                                                        <li>
                                                            <span>加入群</span>
                                                        </li>
                                                        <li>
                                                            <span>创建群</span>
                                                        </li>
                                                        <li>
                                                            <span>群管理</span>
                                                            <ul>
                                                                <li>
                                                                     <span>群设置</span>
                                                                </li>
                                                                <li>
                                                                     <span>群成员</span>
                                                                </li>
                                                                <li>
                                                                     <span>群名片修改</span>
                                                                </li>
                                                                
                                                            </ul>
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li>
                                                    <span>最近联系人</span>
                                                </li>
                                                <li>
                                                    <span>未读消息</span>
                                                </li>
                                                <li>
                                                    <span>查找/添加好友</span>
                                                    <ul>
                                                        <li>
                                                            <span>查找联系人</span>
                                                        </li>
                                                        <li>
                                                            <span>查找群</span>
                                                        </li>
                                                    </ul>
                                                </li>
                                                <li>
                                                    <span>消息管理器</span>
                                                </li>
                                                <li>
                                                    <span>资源共享</span>
                                                </li>
                                                <li>
                                                    <span>网络硬盘</span>
                                                </li>
                                                <li>
                                                    <span>企业通讯录</span>
                                                </li>
                                            </ul>
                                        </li>
                                    </ul>
                                </li>
                                <li>
                                    <span>开发文档</span>
                                </li>
                            </ul>
                        </li>                       
                 </ul>
            </div> 
        </div>
                  
        <!--主要内容显示区-->                      
        <div id="contents">      
                      
        </div> 
        <!--主要内容显示区--> 
        
        <div class="clear">
        
        </div>
        <div id="bottom">
            <p class="p_bot" >沪ICP备 xxxx © 2003-2010 xx CopyRight© 2003-2010 All Rights Reserved</p>
        </div>
    </body>
</html>

 

问题是在最里层的文字上添加链接,加上a标记,不能跳转。。

代码在附件中。。

有劳各位大侠了。小弟再次谢了

1个回答

easyui tree里面每个节点都有个onclick事件吧,,你可以在事件里面加入js脚本,跳转啊。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问