반응형
- 2023-11-29 : First posting.
<img>
태그가 아닌 css의 background-url 속성으로 적용되어야 한다고 한다. (객체 속성으로도 명시할 수 있음.) 아마도 그냥 img 로 load 되면 속성을 변화시키면서 img 를 바꾸는게 막혀서 그런듯 하다. (.gif 로 하면 더 멋질거 같아서 적용해 봤는데, background-url 로 설정하면 움직이진 않는듯.)
```[.linenums.lang-html#pre-code-ripples]
```/
```[.linenums.lang-html]
<style>
#image-ex {max-width:100%; width:100%; height:100vh !important; background:url(https://i.imgur.com/r3RMdYs.gif) no-repeat center; background-size:cover}
#framesContainer {max-width:100%; width:100%; height:100vh !important; background:url(https://i.imgur.com/r3RMdYs.gif) no-repeat center; background-size:cover}
</style>
<img id="image-ex0" src="https://i.imgur.com/r3RMdYs.gif">
<div id="image-test0" style="max-width:100%; width:100%; height:100vh !important; background:url(https://i.imgur.com/r3RMdYs.gif) no-repeat center; background-size:cover"></div>
<div id="image-ex"></div>
<div class="p"></div>
framesContainer
<div id="framesContainer"></div>
<div id="image-test" style="max-width:100%; width:100%; height:100vh !important; background:url(https://i.imgur.com/r3RMdYs.gif) no-repeat center; background-size:cover"></div>
```/
framesContainer
## 변수들
변수들은 가서 보시고 참조하세요.
## RRA
반응형
'[IT/Programming] > HTML related' 카테고리의 다른 글
구글 검색 바로 할 수 있게 input 및 button 만들기 (1) | 2023.12.28 |
---|---|
Parent DOM (Document Object Model) 이 hidden 일 때, child element 가 update 되면 hidden 이 풀릴 때 해결법 (2) | 2023.12.03 |
브라우저에서 자동 비밀번호 완성 (Auto password completion) 일 때, 이를 파악해서 바로 로그인 시켜주는 방법 (2) | 2023.12.01 |
imgur - Embed album (5) | 2023.11.28 |
인터넷에서 예쁘게 코드 입력하기 (google code prettify) (1) | 2023.11.04 |
Learning AJAX (1) | 2023.11.04 |
Referer 알아내기 in Server (Vert.x) and Client (HTML/javascript) (0) | 2023.11.04 |