利用伪元素--给标题添加下划线

	.selectStyle {
		color: #EF420E;
		font-size: 35rpx;
		font-weight: bold;
		position: relative;
	}
	.selectStyle::before {
		content: '';
		position: absolute;
		left: 18%;
		right: 0;
		bottom: -10rpx;
		 50%;
		height: 2px;
		border-radius: 6rpx;
		border-bottom: 2px solid #EF420E;
		box-sizing: border-box;
	}

  

原文地址:https://www.cnblogs.com/fdxjava/p/14215013.html