软件教程

用CSS制作简单的伸缩树型目录实例

来源: 本站    类别: 软件教程    日期: 2014/12/1

 

<div id="main1" style="color:blue" onclick="document.all.child1.style.display=(document.all.child1.style.display =='none')?'':'none'" >
+ 主目录1</div>
<div id="child1" style="display:none">
&nbsp;
<a href="#"><font size="2">- 子目录1</font></a><font size="2"> <br>
&nbsp;
<a href="#">- 子目录2</a> <br>
&nbsp;
<a href="#">- 子目录3</a> <br>
&nbsp; </font>
<a href="#"><font size="2">- 子目录4</font></a>
</div>
<div id="main2" style="color:blue" onclick="document.all.child2.style.display=(document.all.child2.style.display =='none')?'':'none'" >
+ 主目录2 </div>
<div id="child2" style="display:none; width:985; height:48">
&nbsp;
<a href="#"><font size="2">- 子目录1</font></a><font size="2"> <br>
&nbsp;
<a href="#">- 子目录2</a> <br>
&nbsp;
<a href="#">- 子目录3</a> </font>
</div>

相关文章


Copyright © 2004 - 2024 CNHWW Inc. All Rights Reserved
石家庄市征红网络科技有限公司版权所有 邮政编码:050051
服务电话:0311-85315152 13931185013 在线客服QQ:81447932 / 81447933 邮箱: cnhww@163.com