• 树菜单


    树1

    <!DOCTYPE html>
    <html>
    	<head>
    		<meta charset="UTF-8">
    		<title></title>
    		<link rel="stylesheet" type="text/css" href="main.css"/>
    		<style>
    			._HEAD2{ 200px;height: calc(100% - 100px);float: left;margin-top: 50px;margin-bottom:50px;}
    			._TREE_DIV{ 100%;float: left;height:100%;overflow: auto;}
    			._TREE_DIV ul{float: left;position: relative;margin-left: 10px; calc(100% - 10px);}
    			._TREE_DIV ul>li{ 100%;float: left;position: relative;padding-left: 10px}
    			._TREE_DIV ul>li>a{ 100%;float: left;}
    			._TREE_DIV ul>li>a>span{ 20px;height: 30px;line-height: 30px;text-align: center;display: block;float: left;}
    			._TREE_DIV ul>li>a>span>i{color: #999;font-size: 13px;}
    			._TREE_DIV ul>li>a>p{float: left; calc(100% - 20px);line-height: 30px;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;}
    			._TREE_DIV ul:before{position: absolute;content: '';display: inline-block;border: 1px dotted #999;top: -17px;left: 0;bottom: 17px;border- 0 0 0 1px;}
    			._TREE_DIV ul>li:before{position: absolute;content: ''; 20px;height: 1px;border-top: 1px dotted #999;left: 0;top: 14px;}
    			._TREE_DIV ul>li:last-of-type:after{position: absolute;content: '';display: inline-block;border: 2px solid #FFF;top: 16px;left: 0;bottom: 17px;}
    			._TREE_DIV ul>li>a:hover *{color: #3493E5;}
    			._TREE_DIV ul>li.selected>a *{color: #3493E5;}
    		</style>
    	</head>
    	<body>
    		<div class="_HEAD2">
    			<div class="_TREE_DIV">
    				<ul>
    					<li>
    						<a href="javascript:void(0);">
    							<span><i>�</i></span>
    							<p>江苏企梦软件技术有限公司</p>
    						</a>
    						<ul>
    							<li>
    								<a href="javascript:void(0);">
    									<span><i>�</i></span>
    									<p>会计部门</p>
    								</a>
    								<ul>
    									<li class="selected">
    										<a href="javascript:void(0);">
    											<span><i></i></span>
    											<p>A组</p>
    										</a>
    									</li>
    									<li>
    										<a href="javascript:void(0);">
    											<span><i></i></span>
    											<p>B组</p>
    										</a>
    									</li>
    									<li>
    										<a href="javascript:void(0);">
    											<span><i></i></span>
    											<p>C组</p>
    										</a>
    									</li>
    									<li>
    										<a href="javascript:void(0);">
    											<span><i></i></span>
    											<p>D组</p>
    										</a>
    									</li>
    								</ul>
    							</li>
    							<li>
    								<a href="javascript:void(0);">
    									<span><i>�</i></span>
    									<p>基础部门</p>
    								</a>
    								<ul>
    									<li>
    										<a href="javascript:void(0);">
    											<span><i>�</i></span>
    											<p>税务部</p>
    										</a>
    										<ul>
    											<li>
    												<a href="javascript:void(0);">
    													<span><i></i></span>
    													<p>A组</p>
    												</a>
    											</li>
    											<li>
    												<a href="javascript:void(0);">
    													<span><i></i></span>
    													<p>B组</p>
    												</a>
    											</li>
    											<li>
    												<a href="javascript:void(0);">
    													<span><i></i></span>
    													<p>C组</p>
    												</a>
    											</li>
    											<li>
    												<a href="javascript:void(0);">
    													<span><i></i></span>
    													<p>D组</p>
    												</a>
    											</li>
    										</ul>
    									</li>
    								</ul>
    								<li>
    									<a href="javascript:void(0);">
    										<span><i></i></span>
    										<p>业务部</p>
    									</a>
    								</li>
    								<li>
    									<a href="javascript:void(0);">
    										<span><i></i></span>
    										<p>事业部</p>
    									</a>
    								</li>
    								<li>
    									<a href="javascript:void(0);">
    										<span><i></i></span>
    										<p>网络部</p>
    									</a>
    								</li>
    							</li>
    						</ul>
    					</li>
    				</ul>
    			</div>
    		</div>
    	</body>
    </html>
    

      树2

    <!DOCTYPE html>
    <html>
    	<head>
    		<meta charset="UTF-8">
    		<title></title>
    		<link rel="stylesheet" type="text/css" href="main.css"/>
    		<style>
    			._HEAD2{ 200px;height: calc(100% - 100px);float: left;margin-top: 50px;margin-bottom:50px;}
    			._TREE_DIV2{ 100%;float: left;height:100%;overflow: auto;}
    			._TREE_DIV2 ul{float: left;position: relative;margin-left: 10px; calc(100% - 10px);}
    			._TREE_DIV2 ul>li{ 100%;float: left;position: relative;padding-left: 10px}
    			._TREE_DIV2 ul>li>a{ 100%;float: left;}
    			._TREE_DIV2 ul>li>a>span{ 15px;height: 15px;line-height: 15px;text-align: center;display: block;float: left;margin-top: 7.5px;border: 1px solid #999;margin-left: 5px;margin-right: 5px;position: relative;}
    			._TREE_DIV2 ul>li>a>span:after{position: absolute;content: '';display: inline-block;10px;height:1px;border-top:1px dotted #999;top: 7.5px;}
    			._TREE_DIV2 ul>li>a>span>i{color: #999;}
    			._TREE_DIV2 ul>li>a>div{float: left; 100%;line-height: 30px;}
    			._TREE_DIV2 ul>li>a>span ~ div{ calc(100% - 30px);}
    			._TREE_DIV2 ul>li>a>div>span{float: left; 20px;display: block;line-height: 30px;text-align: center;float: left;}
    			._TREE_DIV2 ul>li>a>div>p{ calc(100% - 50px);line-height: 30px;float: left;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;}
    			._TREE_DIV2 ul:before{position: absolute;content: '';display: inline-block;border: 1px dotted #999;top: -7px;left: 0;bottom: 9px;border- 0 0 0 1px;}
    			._TREE_DIV2 ul>li:before{position: absolute;content: ''; 15px;height: 1px;border-top: 1px dotted #999;left: 0;top: 14px;}
    			._TREE_DIV2 ul>li:last-of-type:after{position: absolute;content: '';display: inline-block;border: 2px solid #FFF;top: 16px;left: 0;bottom: 9px;}
    			._TREE_DIV2 ul>li>a:hover *{color: #3493E5;}
    		</style>
    	</head>
    	<body>
    		<div class="_HEAD2">
    			<div class="_TREE_DIV2">
    				<ul>
    					<li>
    						<a href="javascript:void(0);">
    							<span><i>�</i></span>
    							<div>
    								<div class="_CHECKBOX">  
    								    <input class="_CHECKBOX_INPUT" type="checkbox">  
    								    <span class="_CHECKBOX_INPUTBG"></span>
    								</div>
    								<span><i>�</i></span>
    								<p>导出</p>
    							</div>
    						</a>
    						<ul>
    							<li>
    								<a href="javascript:void(0);">
    									<div>
    										<div class="_CHECKBOX">  
    										    <input class="_CHECKBOX_INPUT" type="checkbox">  
    										    <span class="_CHECKBOX_INPUTBG"></span>
    										</div>
    										<span><i>�</i></span>
    										<p>EXCLE</p>
    									</div>
    								</a>
    							</li>
    						</ul>
    					</li>
    					<li>
    						<a href="javascript:void(0);">
    							<span><i>�</i></span>
    							<div>
    								<div class="_CHECKBOX">  
    								    <input class="_CHECKBOX_INPUT" type="checkbox">  
    								    <span class="_CHECKBOX_INPUTBG"></span>
    								</div>
    								<span><i>�</i></span>
    								<p>同步</p>
    							</div>
    						</a>
    					</li>
    					<li>
    						<a href="javascript:void(0);">
    							<span><i>�</i></span>
    							<div>
    								<div class="_CHECKBOX">  
    								    <input class="_CHECKBOX_INPUT" type="checkbox">  
    								    <span class="_CHECKBOX_INPUTBG"></span>
    								</div>
    								<span><i>�</i></span>
    								<p>流程</p>
    							</div>
    						</a>
    					</li>
    					<li>
    						<a href="javascript:void(0);">
    							<span><i>�</i></span>
    							<div>
    								<div class="_CHECKBOX">  
    								    <input class="_CHECKBOX_INPUT" type="checkbox">  
    								    <span class="_CHECKBOX_INPUTBG"></span>
    								</div>
    								<span><i>�</i></span>
    								<p>附件</p>
    							</div>
    						</a>
    					</li>
    					<li>
    						<a href="javascript:void(0);">
    							<span><i>�</i></span>
    							<div>
    								<div class="_CHECKBOX">  
    								    <input class="_CHECKBOX_INPUT" type="checkbox">  
    								    <span class="_CHECKBOX_INPUTBG"></span>
    								</div>
    								<span><i>�</i></span>
    								<p>删除</p>
    							</div>
    						</a>
    					</li>
    					<li>
    						<a href="javascript:void(0);">
    							<span><i>�</i></span>
    							<div>
    								<div class="_CHECKBOX">  
    								    <input class="_CHECKBOX_INPUT" type="checkbox">  
    								    <span class="_CHECKBOX_INPUTBG"></span>
    								</div>
    								<span><i>�</i></span>
    								<p>新增</p>
    							</div>
    						</a>
    					</li>
    				</ul>
    			</div>
    		</div>
    	</body>
    </html>
    

      

  • 相关阅读:
    Key-Value是用一个不可重复的key集合对应可重复的value集合
    集合是指一个对象容纳了多个对象
    Throw是一个语句,用来做抛出例外的功能
    对于try catch放在能够很好地处理例外的位置
    一个try可以跟进多个catch语句,用于处理不同情况,当一个try只能匹配一个catch
    Try中如果发现错误,即跳出try去匹配catch,那么try后面的语句就不会被执行
    出错的方法有可能是JDK,也可能是程序员写的程序,无论谁写的,抛出一定用throw
    JAVA会将所有的错误封装成为一个对象,其根本父类为Throwable
    匿名内部类是一种特殊的局部内部类,它是通过匿名类实现接口
    静态内部类定义在类中,任何方法外,用static定义
  • 原文地址:https://www.cnblogs.com/chenwan1218/p/13061623.html
Copyright © 2020-2023  润新知