左侧菜单滑动效果html,jquery实现左右滑动菜单效果代码

这个示例展示了如何使用jQuery创建左右滑动的菜单导航。菜单在鼠标悬停时改变背景色,具有圆角效果,推荐在Firefox或Chrome中体验。文章提供了详细代码和在线演示链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本文实例讲述了jquery实现左右滑动菜单效果代码。分享给大家供大家参考。具体如下:

这里演示了三种背景颜色左右滑动jquery菜单导航效果,IE下有问题,本菜单使用了CSS3的部分属性,因此建议使用火狐或Chrome等浏览器获取最佳效果。当把鼠标移到菜单上的时候,对应菜单项的背景会变化,而且本菜单具有圆角的效果。

运行效果截图如下:

5768d9affb3c9b019e87881a235c1f60.png

在线演示地址如下:

具体代码如下:

/p>

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

三种背景颜色左右滑动菜单导航

.webwidget_menu_glide{

padding: 5px;

-moz-border-radius-topright: 10px;

-moz-border-radius-topleft: 10px;

-webkit-border-top-left-radius: 10px;

-webkit-border-top-right-radius: 10px;

-khtml-border-radius-topright: 10px;

-khtml-border-radius-topleft: 10px;

border-radius-topright: 10px;

border-radius-topleft: 10px;

-moz-border-radius-bottomright: 10px;

-moz-border-radius-bottomleft: 10px;

-webkit-border-bottom-left-radius: 10px;

-webkit-border-bottom-right-radius: 10px;

-khtml-border-radius-bottomright: 10px;

-khtml-border-radius-bottomleft: 10px;

border-radius-bottomright: 10px;

border-radius-bottomleft: 10px;

border-radius:10px;

}

.webwidget_menu_glide .webwidget_menu_glide_sprite{

width: 100px;

height: 20px;

background-color: fuchsia;

position: absolute;

-moz-border-radius-topright: 10px;

-moz-border-radius-topleft: 10px;

-webkit-border-top-left-radius: 10px;

-webkit-border-top-right-radius: 10px;

-khtml-border-radius-topright: 10px;

-khtml-border-radius-topleft: 10px;

<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值