本文实例讲述了JS实现可编辑的后台管理菜单功能。分享给大家供大家参考,具体如下:
JS可编辑后台菜单 body { font-size: 12px; } ul, li, h2 { margin: 0; padding: 0; } ul { list-style: none; } #top { width: 900px; height: 40px; margin: 0 auto; background-color: #CCCC00 } #top h2 { width: 150px; height: 40px; background-color: #99CC00; float: left; font-size: 14px; text-align: center; line-height: 40px; } #topTags { width: 750px; height: 40px; margin: 0 auto; background-color: #CCCC00; float: left } #topTags ul li { float: left; width: 100px; height: 25px; margin-right: 5px; display: block; text-align: center; cursor: pointer; padding-top: 15px; } #main { width: 900px; height: 500px; margin: 0 auto; background-color: #F5F7E6; } #leftMenu { width: 150px; height: 500px; background-color: #009900; float: left } #leftMenu ul { margin: 10px; } #leftMenu ul li { width: 130px; height: 30px; display: block; background: #99CC00; cursor: pointer; line-height: 30px; text-align: center; margin-bottom: 5px; } #leftMenu ul li a { color: #000000; text-decoration: none; } #content { width: 750px; height: 500px; float: left } .content { width: 740px; height: 490px; display: none; padding: 5px; overflow-y: auto; line-height: 30px; } #footer { width: 900px; height: 30px; margin: 0 auto; background-color: #ccc; line-height: 30px; text-align: center; } .content1 { width: 740px; height: 490px; display: block; padding: 5px; overflow-y: auto; line-height: 30px; } 管理菜单
- 导航一
- 导航二
- 导航三
- 导航四
- 导航五
- 导航六
- 导航七
欢迎光临
导航一内容 导航二内容 导航三内容 导航四内容 导航五内容 导航六内容 导航七内容 copyright jb51.net
运行效果图如下:
完整实例代码点击此处本站下载。
更多关于Javascript相关内容感兴趣的读者可查看本站专题:《Javascript数组操作技巧总结》、《Javascript数学运算用法总结》、《Javascript数据结构与算法技巧总结》、《Javascript切换特效与技巧总结》、《Javascript查找算法技巧总结》、《Javascript动画特效与技巧汇总》、《Javascript错误与调试技巧总结》及《Javascript遍历算法与技巧总结》
希望本文所述对大家Javascript程序设计有所帮助。



