这篇文章主要为大家介绍了p+css实现仿京东商城导航条效果,涉及页面p+css布局涉及结合onmouseout鼠标事件动态切换的相关技巧,具有一定参考借鉴价值,需要的朋友可以参考下
本文实例讲述了p+CSS实现仿京东商城导航条效果。分享给大家供大家参考。具体如下:
这里演示了p+CSS实现仿京东商城导航条功能代码,鼠标滑过导航条选项即可弹出对应的子菜单列表,界面简洁大方。
运行效果截图如下:

立即学习“前端免费学习笔记(深入)”;
具体代码如下:
京东商城导航条 .my_left_category{ width:150px; font-size:12px; font-family:arial,sans-serif; letter-spacing:2px;}.my_left_category h1{ background-image:url(images/spring_06.gif); height:20px; background-repeat:no-repeat; font-size:14px; font-weight:bold; padding-left:15px; padding-top:8px; margin:0px; color:#FFF;}.my_left_category .my_left_cat_list{width:148px;border-color:#b60134;border-style:solid;border-width:0px 1px 1px 1px;line-height:13.5pt;}.my_left_category .my_left_cat_list h2 {margin:0px;padding:3px 5px 0px 9px;}.my_left_category .my_left_cat_list h2 a {color:#d6290b;font-weight:bold;font-size:14px;line-height:22px;}.my_left_category .my_left_cat_list h2 a:hover {color:#d6290b;font-weight:bold;font-size:14px;line-height:22px;}.my_left_category .h2_cat{ width:148px; height:26px; background-image:url(images/my_menubg.gif); background-repeat:no-repeat; line-height:26px; font-weight:normal; color:#333333; position:relative;}.my_left_category .h2_cat_1{ width:148px; height:26px; background-image:url(images/my_menubg_1.gif); background-repeat:no-repeat; line-height:26px; font-weight:normal; color:#333333; position:relative;}.my_left_category a{ font:12px; text-decoration:none; color:#333333;}.my_left_category a:hover{ text-decoration:underline; color:#ff3333;}.my_left_category h3{margin:0px; padding:0px;height:26px; font-size:12px; font-weight:normal;display:block; padding-left:8px;}.my_left_category h3 span{color:#999999; width:145px; float:right;}.my_left_category h3 a{ line-height:26px;}.my_left_category .h3_cat{ display:none; width:204px; position:absolute; left:123px; margin-top:-26px; cursor:auto;}.my_left_category .shadow{position:inherit;background:url(images/shadow_04.gif) left top;width:204px;}.my_left_category .shadow_border{position:inherit; width:200px; border:1px solid #959595; margin-top:1px; border-left-width:0px; background:url(images/shadow_border.gif) no-repeat 0px 21px; background-color:#ffffff; margin-bottom:3px}.my_left_category .shadow_border ul{margin:0; padding:0; margin-left:15px}.my_left_category .shadow_border ul li {list-style:none;padding-left:10px;background-image:url(images/my_cat_sub_menu_dot.gif);background-repeat:no-repeat;background-position:0px 8px;float:left;width:75px;height:26px;overflow:hidden;letter-spacing:0px;} .my_left_category .active_cat{ z-index:99;background-position:0 -25px;cursor:pointer;}.my_left_category .active_cat h3 { font-weight:bold}.my_left_category .active_cat h3 span{ display:none;} .my_left_category .active_cat p{display:block;}
分类导航
按网站类别
企业建站
韩国男装
本站
按品牌选货
热销推荐
网站建设
网站程序
其他网站
按价格选货
低端价位
中高端价位
超值特价区
现货区
以上就是本文的全部内容,希望对大家的学习有所帮助,更多相关内容请关注PHP中文网!
相关推荐:
如何用CSS实现带阴影效果的黑色导航菜单效果
CSS3区域模块region的相关代码
以上就是DIV和CSS实现仿京东商城导航条效果的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1610002.html
微信扫一扫
支付宝扫一扫