css 圆角自适应ul

样式

样式

html

			<div class="top">
					<div class="i-row">
						<ul id="ul-top-btn" class="top-btn-list">
							<li class="li-choose">测试数据查询</li>
							<li>数据查询</li>
							<li>当前数据查询</li> 
							<li>过往数据查询</li>
							<li>总数据</li>
						</ul>
					</div>
			</div>

css

.top {
	width: 100%;
	height: 3rem;

}

ul {
	list-style: none;
}

.top-btn-list {
	margin: 0 auto;
	height: 3rem;
	background: #42A3E8CC;
	border-radius: 0.4rem;
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 0;
}

#ul-top-btn>li {
	padding: 0 1.5rem;
	color: #FFFFFF;
	font-size: 1.5rem;
	line-height: 3rem;
	font-weight: 400;
	text-shadow: 0px 3px 5px rgba(9, 21, 61, 0.5);

}

li:first-child {
	border-radius: 0.4rem 0 0 0.4rem ;

}

li:last-child {

	border-radius: 0 0.4rem  0.4rem 0;
}

.li-choose {
	background: linear-gradient(180deg, #FFCF4C, #CE6B30);
	box-shadow: 1px 6px 10px 0px rgba(2, 15, 72, 0.4);

}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值