<ellipse>

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

* Some parts of this feature may have varying levels of support.

<ellipse> 요소는 중심 좌표와 x 및 y 반경을 기반으로 타원을 만드는 SVG 기본 모양입니다.

참고 : 타원은 타원의 정확한 방향을 지정할 수 없지만,(예를 들어 45도 각도로 기울어진 타원을 그리려는 경우) transform 속성을 사용하여 회전할 수 있습니다.

예제

html
<svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg">
  <ellipse cx="100" cy="50" rx="100" ry="50" />
</svg>

속성

cx

타원 중심의 x좌표. 값 유형: <length>|<percentage> ; 기본 값: 0; 에니메이션 가능:

cy

타원 중심의 y좌표 값 유형: <length>|<percentage> ; 기본 값: 0; 에니메이션 가능:

rx

x축의 타원 반경. 값 유형: auto|<length>|<percentage> ; 기본 값: auto; 에니메이션 가능:

ry

y축의 타원 반경. 값 유형: auto|<length>|<percentage> ; 기본 값: auto; 에니메이션 가능:

pathLength

이 속성을 사용하면 경로의 총 길이를 사용자 단위로 지정할 수 있습니다. 값 유형: <number> ; 기본 값: none; 에니메이션 가능:

참고 : SVG2부터 시작하여 cx, cy, rx, 그리고 ry는 기하학 속성입니다. 즉, 해당 속성을 해당 요소의 CSS 속성으로도 사용할 수 있습니다.

전역 속성

코어 속성

특히: id, tabindex

스타일 속성

class, style

조건부 처리 속성

특히: requiredExtensions, systemLanguage

이벤트 속성

전역 이벤트 속성, 그래픽 이벤트 속성

프레젠테이션 속성

특히: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility

ARIA 속성

aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role

사용 참고 사항

카테고리기본 모양 요소, 그래픽 요소, 모양 요소
허용된 콘텐츠순서에 상관없는 다음 요소 중 임의의 개수:
애니메이션 요소
설명 요소

명세서

Specification
Scalable Vector Graphics (SVG) 2
# EllipseElement

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
ellipse
cx
cy
fill
context-fill value
rx
ry
systemLanguage

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support

같이 보기