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 |
Tags
- summary
- TAILWIND
- 셀렉트박스 커스텀
- 검색
- Router
- Oracle LISTAGG 사용 예시
- Angular Router
- angular button
- modal
- route
- Ionic modal
- 아이오닉 스크롤 이벤트
- scroll
- angular modal
- 옵저버블
- formgroup
- mysql if
- flex-1
- ajax 사용 예시
- angular animation
- prisma
- egov spring ajax 사용 예시
- 스크롤 이벤트 감지
- 호버
- ApexChart
- 스크롤 이벤트
- angular route
- 앵귤러 애니메이션
- 모달
- 앵귤러 모달
Archives
- Today
- Total
깜놀하는 해므찌로
Tailwind 모바일 CSS 배경 이미지 / 늘리거나 깨지지 않고 깔끔하게 배경 채우기 본문
반응형
SMALL
<!-- background -->
<div class="absolute z-0 w-full h-full pointer-events-none">
<swiper-container class="section1" style="width: 100%; height: 100%">
<swiper-slide>
<img
class="object-cover w-full h-full pointer-events-none"
src="assets/background/background_1.png"
/>
</swiper-slide>
<swiper-slide
><img
class="object-cover w-full h-full pointer-events-none"
src="assets/background/background_2.png"
/></swiper-slide>
<swiper-slide
><img
class="object-cover w-full h-full pointer-events-none"
src="assets/background/background_3.png"
/></swiper-slide>
</swiper-container>
</div>
1. 배경 이미지를 슬라이드로 구현한 예시
2. object-cover w-full h-full : 을 사용해야 이미지가 늘어나거나 깨지지 않고 깔끔하게 배경으로 채워집니다.
3. pointer-events-none: 클릭 및 드래그를 막습니다.
반응형
LIST
'IT' 카테고리의 다른 글
Angular route 메뉴 셋팅 예시 (0) | 2023.05.18 |
---|---|
typescript 가변인자, typescript rest parameter 활용 예시 (0) | 2023.05.18 |
tailwind 글씨 자동 줄바꿈 (0) | 2023.05.17 |
PC / Mobile 화면 한 번에 모니터링 하는 방법 (0) | 2023.05.17 |
typescript interface, extends, object 활용 예시 (0) | 2023.05.17 |