移动端开发常用样式备忘录

一、说明

这是记录开发过程中常用的样式记录的帖子,后续会不断更新,也欢迎大家优化,添加

二、内容

1、标题前面带竖线的样式

示例:

.title {
	color: #1677ff;
	font-weight: 700;
	font-size: 16px;
	display: flex;
	align-items: center;
	margin: 10px;
}

.title::before {
	content: "";
	display: block;
	height: 16px;
	width: 2px;
	margin-right: 5px;
	background: #1677ff;
}

2、标题底部带横线---20240820 更新

.checked {
    height: 100%;
    position: relative;
}

.checked::after {
    content: '';
    position: absolute;
    left: 40%;
    bottom: -3px;
    width: 50%;
    height: 0.03rem;
    background-color: #5897FF;
    transform: translateX(-50%);
    border-radius: 5px;
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值