테스트 사이트 - 개발 중인 베타 버전입니다

[0b3] 글자크기 변경 기능에서 궁금한 점이 있습니다. 채택완료

뽁스 12년 전 조회 15,825
<div id="container"> 부분만 적용되는 글자크기조절 버튼을



<div id="container"> 아래에 있던 <div id="text_size"> 를 아래처럼 수정한 다음( font_resize('all_wrap', <= id container 에서 app_wrap로 변경 )



<div id="text_size">

<button class="no_text_resize" onclick="font_resize('all_wrap', 'decrease');">작게</button>

<button class="no_text_resize" onclick="font_default('all_wrap');">기본</button>

<button class="no_text_resize" onclick="font_resize('all_wrap', 'increase');">크게</button>

</div>





<header id="hd"> 위쪽에 <div id="all_wrap"> 추가&아래처럼 수정했습니다.



<div id="text_size"> ~~~ </div>

<div id="all_wrap">

<header id="hd">





그런데

<div id="container"> 부분의 글자크기는 새로고침이나 등등에 버튼클릭이나 이전 클릭했던 크기를 정상적으로 보여주는데 그 외(container div외의) 부분은 될때가 있고 안될때가 있네요~



common.js 파일 들여다 봐도 어떻게 수정해야 될지 몰라서 질문드립니다.



파폭, 크롬만 테스트해봤습니다.
댓글을 작성하려면 로그인이 필요합니다.

답변 6개

채택된 답변
+20 포인트
편리
12년 전
글자크기 변경을 다른 페이지에서도 적용하기 위해 쿠키에 해당 내용을 기록해두고 있습니다.

tail.sub.php 파일을 보시면 아래와 같은 코드가 있습니다.



// 텍스트 리사이즈 카운트 쿠키있으면 실행

&nbsp; &nbsp; var resize_act;

&nbsp; &nbsp; var text_resize_count = parseInt(get_cookie("ck_font_resize_count"));

&nbsp; &nbsp; if(!isNaN(text_resize_count)) {

&nbsp; &nbsp; &nbsp; &nbsp; if(text_resize_count > 0)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resize_act = "increase";

&nbsp; &nbsp; &nbsp; &nbsp; else if(text_resize_count < 0)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resize_act = "decrease";



&nbsp; &nbsp; &nbsp; &nbsp; if(Math.abs(text_resize_count) > 0)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; font_resize2("container", resize_act, Math.abs(text_resize_count));

&nbsp; &nbsp; }



&nbsp;font_resize2("container", resize_act, Math.abs(text_resize_count)); 에서 container 부분을

변경해서 테스트해 보시기 바랍니다.
로그인 후 평가할 수 있습니다

답변에 대한 댓글 2개

뽁스
12년 전
감사합니다~ 정상작동되네요~
한나야
12년 전
그렇군요. 감사합니다.

댓글을 작성하려면 로그인이 필요합니다.

5년 전

도움되었습니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

도움되었습니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

감사합니다

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

6년 전

감사합니다

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

11년 전
감사합니다
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인