向高手求一个导航型的css代码。如图。
时间:2011-10-12
来源:互联网
点击左边的博客1,出现右图的效果。(在博客1下面出现一个下拉框或弹窗一样的东西。)
作者: yuqunxue 发布时间: 2011-10-12
作者: yuqunxue 发布时间: 2011-10-12
作者: yuqunxue 发布时间: 2011-10-12
作者: yuqunxue 发布时间: 2011-10-12
作者: bear63 发布时间: 2011-10-12
就是很常见的展开菜单而已
给你个简单的例子
CSS code
<!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=gb2312" /> <title>NoName</title> <style> *{padding:0;margin:0;font-size:12px;} .testDiv{width:198px;height:100px;border:1px solid #ccc;margin:0 0 5px 5px;display:none;} h5{background:#ccc;width:200px;margin:5px 0 0 5px;height:24px;line-height:24px;cursor:pointer;} </style> <script> function ShowMe(obj){ var ShowObj=document.getElementById(obj); ShowObj.style.display=(ShowObj.style.display=='block')?'none':'block'; } </script> </head> <body> <h5 onclick="ShowMe('Div1')">模块1</h5> <div id="Div1" class="testDiv"> 第一个栏目 </div> <h5 onclick="ShowMe('Div2')">模块2</h5> <div id="Div2" class="testDiv"> 第二个栏目 </div> <h5 onclick="ShowMe('Div3')">模块3</h5> <div id="Div3" class="testDiv"> 第三个栏目 </div> </body> </html>
作者: lein_design 发布时间: 2011-10-12
作者: liujiebest 发布时间: 2011-10-12
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28