[0b3] 글자크기 변경 기능에서 궁금한 점이 있습니다.
<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 파일 들여다 봐도 어떻게 수정해야 될지 몰라서 질문드립니다.
파폭, 크롬만 테스트해봤습니다.
<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 파일 들여다 봐도 어떻게 수정해야 될지 몰라서 질문드립니다.
파폭, 크롬만 테스트해봤습니다.
댓글 3개
12년 전
글자크기 변경을 다른 페이지에서도 적용하기 위해 쿠키에 해당 내용을 기록해두고 있습니다.
tail.sub.php 파일을 보시면 아래와 같은 코드가 있습니다.
// 텍스트 리사이즈 카운트 쿠키있으면 실행
var resize_act;
var text_resize_count = parseInt(get_cookie("ck_font_resize_count"));
if(!isNaN(text_resize_count)) {
if(text_resize_count > 0)
resize_act = "increase";
else if(text_resize_count < 0)
resize_act = "decrease";
if(Math.abs(text_resize_count) > 0)
font_resize2("container", resize_act, Math.abs(text_resize_count));
}
font_resize2("container", resize_act, Math.abs(text_resize_count)); 에서 container 부분을
변경해서 테스트해 보시기 바랍니다.
tail.sub.php 파일을 보시면 아래와 같은 코드가 있습니다.
// 텍스트 리사이즈 카운트 쿠키있으면 실행
var resize_act;
var text_resize_count = parseInt(get_cookie("ck_font_resize_count"));
if(!isNaN(text_resize_count)) {
if(text_resize_count > 0)
resize_act = "increase";
else if(text_resize_count < 0)
resize_act = "decrease";
if(Math.abs(text_resize_count) > 0)
font_resize2("container", resize_act, Math.abs(text_resize_count));
}
font_resize2("container", resize_act, Math.abs(text_resize_count)); 에서 container 부분을
변경해서 테스트해 보시기 바랍니다.
12년 전
감사합니다~ 정상작동되네요~
12년 전
그렇군요. 감사합니다.
게시판 목록
그누5 질답
그누보드5 버전에 대한 질문을 할 수 있습니다.
쪽지나 메일로 해결해 주겠다는 답변은 정상적인 답변으로 보기 어려우므로 신고해 주시기 바랍니다.
쪽지나 메일로 해결해 주겠다는 답변은 정상적인 답변으로 보기 어려우므로 신고해 주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1043 |
peter78
|
11년 전 | 2812 | |
| 1042 |
하얀비요일
|
12년 전 | 739 | |
| 1041 |
Unhappy
|
12년 전 | 2665 | |
| 1040 |
|
12년 전 | 846 | |
| 1039 |
|
12년 전 | 913 | |
| 1038 |
ineverstay
|
12년 전 | 1294 | |
| 1037 | 12년 전 | 953 | ||
| 1036 | 12년 전 | 1101 | ||
| 1035 |
raharaha
|
12년 전 | 1234 | |
| 1034 | 12년 전 | 1025 | ||
| 1033 | 12년 전 | 1219 | ||
| 1032 | 12년 전 | 2251 | ||
| 1031 |
ds2ens
|
12년 전 | 972 | |
| 1030 | 12년 전 | 1162 | ||
| 1029 | 12년 전 | 968 | ||
| 1028 | 12년 전 | 2036 | ||
| 1027 |
williamMOON
|
12년 전 | 916 | |
| 1026 | 12년 전 | 1590 | ||
| 1025 | 12년 전 | 14661 | ||
| 1024 | 12년 전 | 752 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기