使用css 完成一个 新增的new 图标

1,288 阅读1分钟

<span class ="new"> 测试</span>

<style>
.new:after{
	content:'New';
	box-sizing: border-box;
	padding:0px 4px;
	border-radius: 6px;
	font-style: oblique;
	font-size: 12px;
	font-family: DIN-MediumItalic;
	color: white;
	background: linear-gradient(180.00deg, #ee3238 0.00%, #ff6368 100.00%);
	position: relative;
	top: -8px;
	left:3px;
}
</style>