absolute
으로 지정된 div의 값을 left
및 right
에 설정하는 것과 다른 점은?
내가 right
에 대한 값을 설정할 때 텍스트는 가상 클래스 FIDDLE1에 오른쪽으로 채워집니다.
그러나 아니요 left
FIDDLE2. width
FIDDLE3을 설정해야합니다.너비에 좌우 값의 영향
그래서 너비를 설정하지 않고 left
을 사용하고 결과를 FIDDLE1으로 가져올 수 있습니까?
CSS :
div {
width: 100px;
height: 100px;
position: relative;
}
div:after {
content: 'ce champs est obligatoire';
position: absolute;
left: 100px;
}
얼마나 많은 바이올린 ? –