仿京东左侧菜单弹出html代码,相仿京东左侧菜单

Furniture

* {margin:0; padding:0;}

html {color:#434343; background-color:#fff;}

body{color:#434343;font-family:Arial,宋体;line-height:20px; font-size:12px;height: 100%;width: 100%; word-break:normal; background: #FFF;}

a{color:#434343; text-decoration:none;}a:hover {color:#f30;text-decoration:underline;}

img {border:0; vertical-align:middle;}

li {list-style:none;}

.clearfix:after { content:"."; clear:both; display:block; height:0; visibility:hidden; overflow:hidden; }

.clearfix { display: inline-table; }

* html .clearfix { height: 1%; }

.clearfix { display: block;}

*+html .clearfix { min-height:1%; }

.f_l {float:left;}

.f_r {float:right;}

.width785 {width:785px; margin-top:10px;}

.width165 {width:165px; margin-top:10px;}

.cgtop_focus {position:relative; height:314px; z-index:2; margin-bottom:10px;}

.my_category_c {height:264px;}

.my_left_category {width:258px;border:1px solid #bfbfbf; position:absolute; top:0px; left:0px; z-index:9999;}

.my_left_category h2 {background: url(http://www.furnitureinchina.com/images/cg_h2_01.gif) repeat-x left top; height:26px; line-height:26px; font-size:12px; color:#c30; padding-left:5px;}

.my_left_category h2 a {color:#c30;}

.my_left_category h2 a:hover {text-decoration:underline;}

.my_left_category .h2_cat { width:257px; line-height:21px; background-image:url(http://www.furnitureinchina.com/images/cg_my_menubg.gif); background-repeat:no-repeat; position:relative; border-bottom:1px solid #e5e5e5; }

.my_left_category a {text-decoration:none; display:block;}

.my_left_category a:hover { text-decoration:none;}

.my_left_category h3 {height:21px; font-size:12px; font-weight:normal; }

.my_left_category h3 a { line-height:21px; display:block; padding-left:8px; width:230px; overflow:hidden;white-space:nowrap;text-overflow:ellipsis; -o-text-overflow:ellipsis;}

.my_left_category .h3_cat { display:none; width:236px; position:absolute; left:243px; margin-top:-22px; cursor:auto; }

.my_left_category .shadow { position:inherit; background:url(http://www.furnitureinchina.com/images/cg_shadow_04.gif) left top; width:236px; }

.my_left_category .shadow_border { position:inherit; width:232px; border:1px solid #959595; margin-top:1px; border-left-width:0px; background:url(http://www.furnitureinchina.com/images/cg_shadow_border.gif) no-repeat 0px 19px; background-color:#ffffff; margin-bottom:3px }

.my_left_category .shadow_border ul li {}

.my_left_category .shadow_border ul li a {padding-left:5px; height:22px; line-height:22px; overflow:hidden; margin-left:1px;}

.my_left_category .shadow_border ul li a:hover {background-color:#eee;}

.my_left_category .active_cat { z-index:99; background-position:0 -26px; cursor:pointer; }

.my_left_category .active_cat h3 {color:#f30; background: url(http://www.furnitureinchina.com/images/cg_my_cat_sub_menu_dot.gif) no-repeat 168px center; }

.my_left_category .active_cat h3 a {color:#f30; width:230px; overflow:hidden; height:21px;white-space:nowrap;text-overflow:ellipsis; -o-text-overflow:ellipsis;}

.my_left_category .active_cat div { display:block; }

.morecate { background: #ede5f0 url(http://www.furnitureinchina.com/images/cate_icon02.gif) no-repeat center center; height:22px; line-height:22px;}

.morecate a {display:block; height:22px; line-height:22px; cursor:pointer;}

#catebox {z-index:9999; }

#cgbox {background-color:#fff;}

#cg_Box{position:relative; z-index:1;}

.sub_promotion{ overflow:hidden; width:513px; height:312px; border:1px solid #bfbfbf; position:relative; background: #f0f0f0 url(http://www.furnitureinchina.com/images/cg_focus_bg.gif) repeat-x left top; }

All Categories

//===========================点击展开关闭效果====================================

function openShutManager(oSourceObj,oTargetObj,shutAble,oOpenTip,oShutTip){

var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj;

var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj;

var openTip = oOpenTip || "";

var shutTip = oShutTip || "";

if(targetObj.style.display!="none"){

if(shutAble) return;

targetObj.style.display="none";

if(openTip && shutTip){

sourceObj.innerHTML = shutTip;

}

} else {

targetObj.style.display="block";

if(openTip && shutTip){

sourceObj.innerHTML = openTip;

}

}

}

这里面放的是box的内容.

来自http://js.alixixi.com/a/2012081482928.shtml

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值