scss css选择器妙招

//&:not(:last-child)
.status_two {
			.btn {
				cursor: pointer;
				font-family: PingFangSC-Regular;
				font-size: 0.75rem;
				color: #3366ff;
				line-height: 0.75rem;
				&:not(:last-child) {
					margin-right: 0.75rem;
					&::after {
						content: '';
						position: relative;
						display: inline-block;
						width: 1px;
						height: 0.75rem;
						background: #3366ff;
						right: -6px;
						top: 1px;
						cursor: default;
					}
				}
			}
		}

/**分页*/
&:not(.disabled).active,直接选中按钮的禁用状态下的激活状态
.el-pagination.is-background {
	.btn-prev,
	.btn-next {
		background-color: transparent;
	}
	.el-pager li {
		border-radius: 50%;
		background: none;
		font-weight: normal;
		&:not(.disabled).active {
			@include primary_btn_fill_normal;
		}
	}
}
white-space: pre-line;
可以使元素内容识别换行符等符号
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值