Develop
2014.02.13 15:34
[html] SVG(Scalable Vector Graphics) 간단 정리
조회 수 8831 댓글 0
# SVG 란?
SVG (Scalable Vector Graphics)
2차원 벡터(vector) 그래픽 표현을 위한 XML기반의 파일 형식
※ XML : 확장성 마크업 언어(Extensible Markup Language)은 전자 데이터 교환에 대한 표준을 정의.
# SVG의 장점
- Resolution Independent(해상도 독립)
- Styling And Scripting
- Can Be Animated And Edited
- Smarller File Size
# 지원 브라우저
- IE 9 이상
- Chrome
- Safari
- Opera
- Firefox
- Android browser
- Blackberry
# SVG 렌더링 방식
1. 독립형 SVG (StandAlone SVG)
> 독립된 SVG 포맷 파일을 사용하는 방법.
<svg xmlns=http://www.w3.org/2000/svg width="100" height="100"> <line x1="0" y1="100" x2="100" y2="0" stroke-width="2" stroke="black" /> </svg>
2. 삽입형 SVG (Embed SVG)
> object, iframe, embed, img 태그 또는 css background-image를 통해 독립형 SVG를 삽입하는 방법.
> 독립형 SVG를 호출하는 페이지에서는 SVG 컨텐츠를 스크립팅 하기 어려울 수 있음.
<body> <iframe src="HelloSVG_line.svg" type="image/svg+xml"></iframe> </body>
3. 인라인 SVG (Inline SVG)
> HTML 문서 안에 SVG 태그를 직접 사용하는 방법.
<body> <svg width="100" height="100"> <line x1="0" y1="100" x2="100" y2="0" stroke-width="2" stroke="black" /> </svg> </body>
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
861 | System/OS | [linux] 특수문자 환경 설정(stty) | hooni | 2003.04.23 | 15277 |
860 | System/OS | [linux] 텔넷, FTP 텍스트 모드에서 사용 | hooni | 2003.04.23 | 11939 |
859 | System/OS | [linux] 터미널에서 문자 깨질 때 설정 ㅋㅋ | hooni | 2003.04.23 | 13914 |
858 | System/OS | [linux] 콘솔/Xwindow 에서 PC스피커 소리 없애기 | hooni | 2003.04.23 | 16352 |
857 | System/OS | [linux] 콘솔 기본언어 설정 방법 | hooni | 2013.04.23 | 12826 |
856 | System/OS | [linux] 커널 컴파일, 설정 | hooni | 2003.04.23 | 17845 |
855 | System/OS | [linux] 최소한의 커널 설정(커널설치 전체과정) | hooni | 2003.04.23 | 17402 |
854 | System/OS | [linux] 초간단 SquirrelMail 설치/설정 (다람쥐 메일) | hooni | 2017.12.11 | 4461 |
853 | System/OS | [linux] 초간단 Postfix, Covecot, SSL/TLS (SMTP) | hooni | 2017.12.11 | 9327 |
852 | System/OS | [linux] 처음 설치부터 APM 설치까지 (업데이트 할 것) | hooni | 2013.04.23 | 38271 |
851 | System/OS | [linux] 종료와 종료코드 확인(환경변수에서) | hooni | 2003.04.23 | 15543 |
850 | Develop | [linux] 임베디드 리눅스 (embedded linux) | hooni | 2013.04.23 | 7354 |