top / right / bottom / left 的简写,定位元素的四条边偏移。
<div class="ib"><span></span></div>.ib { position: relative; width: 180px; height: 100px; background: #eef2ff; border-radius: 10px; }
.ib span { position: absolute; inset: 12px 20px; border-radius: 8px; background: linear-gradient(120deg, #2b57ff, #7a4bff); }