本文实例讲述了JS+CSS实现简易的滑动门效果代码。分享给大家供大家参考。具体如下:
看了很多的滑动门和滑动菜单的资料,总算写出来了一个像样的滑动门,虽然外观不怎么样,但可以兼容火狐,还请老前辈们不要笑话,以后有好多西再请大家批评。
运行效果截图如下:
在线演示地址如下:
http://demo.jb51.net/js/2015/js-css-simple-hdtx-demo-codes/
具体代码如下:
学习练手写下个简易的滑动门 *{ margin:0px; padding:0px; font-size:9pt; } #tab{width:400px; height:auto; margin:0 auto; } ul{list-style:none; margin-left:20px;} li{ float:left;height:30px;background:url(15.jpg);margin:0 5px;text-align:center;line-height:30px;color:#293863;width:60px; position:relative;bottom:-3px;} .dise{display:block;} .undise{display:none;} .fff{background: url(images/tr.jpg);} #all{clear:left; width:400px;} #all div{width:400px;background-color:#F2F5FA;text-align:left;line-height:20px; height:200px; border:1px #CCCDCD solid; } } 学习型源码下载站。 精选网页特效,应有尽有~ 高质量脚本代码资源随您下载!
- 世界的中国
- 网页特效
- 脚本代码
希望本文所述对大家的Javascript程序设计有所帮助。



