Html
    Css
    Js
* {
	margin:0;
	padding:0;
}
.menu {
	margin:100px auto;
	width:1200px;
	height:80px;
	border:1px dashed #000;
}
a {
	text-decoration:none;
	color:orange;
}
ul {
	display:block;
	position:relative;
	text-align:left;
	margin:0px auto;
}
ul>li {
	list-style:none;
	float:left;
	width:200px;
	height:60px;
	display:block;
	text-align:center;
	line-height:60px;
}
.pro {
	position:absolute;
	margin-top:60px;
	width:100px;
	height:20px;
	border-radius:6px;
	background-color:orange;
	left:0px;
}

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

下划线随菜单项移动

1
      iexn0
      2018/4/29 13:37:23
      写高端点更受欢迎
      回复