tab.less 1.04 KB
.m-nav{
	width: 100%;
	background-color: #444;
	font-size: 14px;
	color: #999;
	overflow: hidden;
	box-sizing: border-box;
	a{
		color: #999;
    padding: 0 10px;
    min-width: 70px;
	}
	li{
		float: left;
		line-height: 40px;
		text-align: center;
		position: relative;
		&:last-child{
			padding-right: 0;
		}
	}
	.on{
		a{
			color: #FFF;
      background-color: #23ac38;
			display: block;
			position: relative;
		}
	}
}


.m-tab{
	width: 100%;
	background-color: #FFF;
	font-size: 14px;
	color: #999;
	// border: 1px solid #ddd;
	border-width: 1px 0;
	overflow: hidden;
	box-sizing: border-box;
	margin-bottom: 10px;
	a{
		display: block;
		color: #999;
		padding: 0 10px;
    min-width: 70px;
	}
	li{
		float: left;
		line-height: 45px;
		text-align: center;
		position: relative;
		&:last-child{
			padding-right: 0;
		}
	}
	.on{
		a{
			color: #23ac38;
			display: block;
			position: relative;
			&:after{
				content: '';
				position: absolute;
				bottom: 0;
				left: 0;
				right: 0;
				height: 2px;
				background-color: #23ac38;
			}
		}
	}
}