CSS实现导航栏底部动态滚动条效果
<div>
<ul class="nav">
<li><a href="">导航一</a><span></span></li>
<li><a href="">导航二</a><span></span></li>
<li><a href="">导航三</a><span></span></li>
<li><a href="">导航四</a><span></span></li>
</ul>
</div>
<style>
ul.nav {background-color: whitesmoke;}
ul.nav li {padding: 10px 0;margin: 0 30px;overflow: hidden;display: inline-block;}
ul.nav li a {text-decoration: none;}
ul.nav li span {position: relative;left: -10%;float: left;width: 5%;transition: border, width .5s;border: 1px solid #5FB878;}
ul.nav li:hover span {width: 105%;border: 1px solid #5FB878;}
</style>
演示:
- 洗漱包旅行套装 男出差商务洗簌袋便携化妆包女用品洗护大容量
- 蓝罐(Kjeldsens)曲奇饼干礼盒 454g 丹麦原装进口 休闲零食 节日送礼福利团购
- 适用于新款车载手机支架无线器快充智能自动感应汽车
- 皇顺适配名爵MG7汽车用品MG6PRO改装饰配件MG5门槛条ZS保护贴
温馨提示 : 非特殊注明,否则均为©李联华的博客网原创文章,本站文章未经授权禁止任何形式转载;IP地址:3.138.36.168,归属地:俄亥俄州Dublin ,欢迎您的访问!
文章链接:https://www.lilianhua.com/css-realizes-the-effect-of-dynamic-scroll-bar-at-the-bottom-of-navigation-bar.html
文章链接:https://www.lilianhua.com/css-realizes-the-effect-of-dynamic-scroll-bar-at-the-bottom-of-navigation-bar.html