相关文章推荐
近视的香菜  ·  [error ...·  6 月前    · 
严肃的面包  ·  Git 的Auto ...·  1 年前    · 
&:before { // 使用了 absolute 所以无所谓是 before 还是 after content: ''; // 空白内容占位,当做盒模型处理,见下面 position: absolute; top: 2px; left: 6px; width: 3px; // 勾的短边 height: 8px; // 勾的长边 border: solid white; // 勾的颜色 border-width: 0 2px 2px 0; // 勾的宽度 transform: rotate(45deg); // 定制宽高加上旋转可以伪装内部的白色勾

CodePen