Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- priority queue
- 블록체인
- Blockchain
- 우선순위 큐
- 에러
- three.js
- 리액트
- 스토리북
- SVG
- algorithm
- Mnemonic
- 기본 수학 2단계
- Console
- React
- 니모닉
- 프로그래밍
- baekjoon
- 알고리즘
- 코딩
- SASS
- 풀이
- 기본수학1단계
- 백준
- C++
- bip39
- frontend
- scss
- TypeScript
- 지갑
- Storybook
Archives
- Today
- Total
Moong
SVG 크기 조정이 안될 때 본문
아래와 같이 svg 크기 조정을 할 때
svg의 내부 path의 크기가 함께 변하지 않고 잘리는 현상이 발생한다면,
Solution : Viewbox 속성 설정하기
원본 svg 크기에 맞게 viewbox 속성을 설정해주면 됩니다.
<svg
width="98"
height="96"
xmlns="http://www.w3.org/2000/svg"
/* width, height에 맞게 viewbox 설정하기 */
viewBox="0 0 98 96"
>
...
</svg>
크기 줄이기 성공! 🙌
'Frontend' 카테고리의 다른 글
배포할 때 console 로그 막기 / 비우기 (0) | 2023.03.31 |
---|---|
Console Ascii Art - 콘솔창 꾸미기 (1) | 2023.03.31 |
Comments