html js点击下拉菜单代码,JavaScript下拉菜单功能实例代码

本文给大家分享一段实例代码关于js实现下拉菜单功能,具体代码如下所示:

下拉菜单

body,

ul,

li {

margin: 0;

padding: 0;

font-size: 13px;

}

ul,

li {

list-style: none;

}

#divselect {

width: 186px;

margin: 80px auto;

position: relative;

z-index: 10000;

}

#divselect cite {

width: 150px;

height: 24px;

line-height: 24px;

display: block;

color: #807a62;

cursor: pointer;

font-style: normal;

padding-left: 4px;

padding-right: 30px;

border: 1px solid #333333;

/*background: url(xjt.png) no-repeat right center;*/

}

cite:before {

content: '';

position: absolute;

right: 7px;

bottom: 7px;

width: 0;

height: 0;

border-width: 4px;

border-style: solid;

border-color: #888 transparent transparent transparent;

transition: all 0.2s;

-webkit-transition: all 0.2s;

-moz-transition: all 0.2s;

-o-transition: all 0.2s;

-ms-transition: all 0.2s;

transform-origin: 50% 25%;

-ms-transform-origin: 50% 25%;

-moz-transform-origin: 50% 25%;

-webkit-transform-origin: 50% 25%;

-o-transform-origin: 50% 25%;

}

.extended cite:before {

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值