jquery实现垂直和水平菜单导航栏

jquery实现垂直和水平菜单导航栏

2023年7月9日发(作者:)

jquery实现垂直和⽔平菜单导航栏本⽂实例为⼤家分享了jquery菜单导航栏的实现代码,供⼤家参考,具体内容如下代码 竖直导航菜单

代码*{ margin: 0px; padding: 0px;}.content{ margin: 40px 100px; float: left;}ul ,li{ list-style: none;

}.main,.hmain{ width: 150px; background: #222; font-size: 16px; text-align: center; cursor: pointer; line-height: 40px; color: white;}.main>a,.hmain>a{ text-decoration: none; color: white; display: inline-block; width: 150px; min-height: 40px;}.main:hover,.hmain:hover{ background: black;}.child{ background: #444; display:none;}.child li:hover{ background: #333333;}

/*垂直导航栏左浮动*/.hmain{ float: left;}以上就是本⽂的全部内容,希望对⼤家的学习有所帮助,也希望⼤家多多⽀持。

发布者:admin,转转请注明出处:http://www.yc00.com/news/1688850926a176563.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信