CSS 지우기 속성
예시
<p> 요소는 왼쪽 부동 요소 아래로 푸시됩니다(<p> 요소는 왼쪽에 부동 요소를 허용하지 않음).
img
{
float: left;
}
p.clear
{
clear: left;
}
정의 및 사용
속성 은 clear
부동 요소 옆의 흐름을 제어합니다.
이 clear
속성은 부동 요소 옆에 있는 요소에 어떤 일이 발생해야 하는지 지정합니다.
팁: 또한 속성 을 살펴보십시오 .
float
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
clear | 1.0 | 5.0 | 1.0 | 1.0 | 6.0 |
CSS 구문
clear: none|left|right|both|initial|inherit;
속성 값
Value | Description |
---|---|
none | Default. The element is not pushed below left or right floated elements |
left | The element is pushed below left floated elements |
right | The element is pushed below right floated elements |
both | The element is pushed below both left and right floated elements |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
관련 페이지
CSS 튜토리얼: CSS 플로트
HTML DOM 참조: 속성 지우기