Html
    Css
    Js

    
                        
* {
	margin:0;
	padding:0;
	list-style:none;
}
ul {
	width:800px;
	margin:0 auto;
	position:relative;
	overflow:hidden;
}
li {
	float:left;
	line-height:48px;
	margin:0 30px 0 0;
	cursor:pointer;
}
li:hover,.active {
	color:#ff701d;
}
.line {
	display:block;
	position:absolute;
	border:0;
	height:5px;
	background-color:#ff701d;
	/*left:0;
	*/
    bottom:0;
	pointer-events:none;
	border-radius:5px;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

jQuery导航下划线滑动

0