Html
    Css
    Js

    
                        
ul {
	overflow:hidden;
	position:relative;
	list-style:none;
}
ul li {
	float:left;
	padding:10px 20px;
	background:#ccc;
	color:#fff;
	font-size:20px;
	cursor:pointer;
	transition:all .2s linear;
}
ul span {
	display:block;
	width:100%;
	height:2px;
	background:#f60;
	position:absolute;
	bottom:0;
}
ul li:hover {
	color:red;
}

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

jq滑动导航

0