专题文章
时长:00:00更新时间:2020-11-27 18:49:29
将下拉菜单的ul高度设置为0,并且超出部分隐藏掉。设置下拉菜单的高度添加过渡效果,高度为auto时过渡效果失效。;<;style>;ul{ list-style: none;margin: 0;padding: 0;} ul li a{ display: block;text-decoration: none;width: 100px;height: 50px;text-align: center;line-height: 50px;color: white;background-color: #2f3e45;} .drop-down{ width: 100px;height: 50px;height: 0;overflow: hidden;<。
查看详情