IloveNY 1楼
#demo{ width: 100px; height: 100px; background-color: #fff; border: 2px solid #000; position: relative; } #demo::after{ content: ''; width: 16px; height: 16px; background-color: #fff; border-top: 2px solid #000; border-right: 2px solid #000; position: absolute; top:20px; right: -10px; transform: rotate(45deg); }
IloveNY 9楼
#demo{ width: 100px; height: 100px; background-color: #fff; border: 2px solid #000; position: relative; } #demo::after{ content: ''; width: 16px; height: 16px; background-color: #fff; border-top: 2px solid #000; border-right: 2px solid #000; position: absolute; top:20px; right: -10px; transform: rotate(45deg); }