테두리 길이가 div 너비보다 작습니까? 다음 코드가 있습니다. div { width: 200px; border-bottom: 1px solid magenta; height: 50px; } div 폭이 200px라서 border-bottom도 200px인데 border-bottom은 div 폭을 변경하지 않고 100px만 원하는 경우 어떻게 해야 하나요?의사 요소를 사용할 수 있습니다.예. div { width : 200px; height : 50px; position: relative; z-index : 1; background: #eee; } div:before { content : ""; position: absolute; left : 0; bottom : 0; height : 1px; width ..