일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- iptime
- KB증권
- centos
- 티스토리
- 소비전력
- html/css
- Apache
- 킹북이초월
- 가상서버호스팅
- 램가스초월
- mysql
- proxmox
- 자바스크립트
- 알뜰폰
- 스톤에이지
- KB국민카드
- 복현오거리
- 워드프레스
- php
- 아파치
- 거제도
- jQuery
- 윈도우10
- Ajax
- 보르비스초월
- SKT
- 시놀로지
- 알리익스프레스
- ConoHa
- 리눅스
- Today
- Total
목록position:fixed (2)
맛집 여행 캠핑 일상 생활
iframe 안에서 position:fixed 가 안먹히는 문제 자식 iframe 안에서는 고정레이어 팝업창이 먹히지가 않습니다.아래처럼 top 부모에 div 를 append 하는 방법을 사용하면 됩니다.$(window).load(function(){createDivFixedTop('TopFixedLayer1');}); $(window).unload(function(){removeDivFixedTop('TopFixedLayer1');}); function createDivFixedTop(_id) { // 고정팝업 추가var obj = document.createElement('div');obj.style.left = 0;obj.style.bottom = 0;obj.style.width = '100px';..
JAVASCRIPT IFRAME 안에서 FIXED 레이어 만들기 iframe 내 position:fixed 를 하더라도 먹히지 않는다.이런 경우엔 최상위 페이지에 레이어를 appendChild 하는 방식으로 접근하여야 한다.$(window).load(function(){ // 고정팝업 추가var obj = document.createElement('div');obj.style.left = 0;obj.style.bottom = 0;obj.style.width = '100px';obj.style.height = '100px';obj.style.position = 'fixed';obj.style['z-index'] = 1000;obj.style['background-color'] = 'rgba(255,255,..