채택완료

테이블 높이 지정을 못하겠어요

2015-01-07 (수) 13:16:14 4,109

http://jjcy.or.kr/bbs/board.php?bo_table=plan&mode=m

ㅠㅠ 월간리스트에서 글자들이 표 위쪽으로 딱 붙어버려서요

아무리 여기저기 다 높이 넣어보고해도 안되고

정렬도 안되서요~~

어디를 건들면 될지 아시는분 도움 부탁드립니당

 

Copy
<?include_once("$board_skin_path/moonday.php"); // 석봉운님의 음력날짜 함수//가로 세로 폭 지정if (eregi('%', $width)) { $col_width = "14%"; }else { $col_width = round($width/7); }$prevmonth = $month - 1;$nextmonth = $month + 1;$prevyear = $year;$nextyear = $year;if ($month == 1) {  $prevmonth = 12;  $prevyear = $year - 1;} elseif ($month == 12) {  $nextmonth = 1;  $nextyear = $year + 1;}//$maxdate = date(t, mktime(0, 0, 0, $month, 1, $year));   // the final date of $month//$offset  = date(w, mktime(0, 0, 0, $month, 1, $year));$today = getdate(); $b_mon = $today['mon']; $b_day = $today['mday']; $b_year = $today['year']; if ($year < 1) { // 오늘의 달력 일때  $month = $b_mon;  $mday = $b_day;  $year = $b_year;}$lastday=array(0,31,28,31,30,31,30,31,31,30,31,30,31);if ($year%4 == 0) $lastday[2] = 29;$dayoftheweek = date("w", mktime (0,0,0,$month,1,$year));?><!--년, 월 form 스크립트 --><script language="JavaScript"><!--function namosw_goto_byselect(sel, targetstr){  var index = sel.selectedIndex;  if (sel.options[index].value != '') {     if (targetstr == 'blank') {       window.open(sel.options[index].value, 'win1');     } else {       var frameobj;       if (targetstr == '') targetstr = 'self';       if ((frameobj = eval(targetstr)) != null)         frameobj.location = sel.options[index].value;     }  }}// 레이어 뷰 스크립트var iDelay = 80 // Delay to hide in millisecondsvar iNSWidth=250 // Default width for netscapevar sDisplayTimer = null, oLastItemfunction getRealPosition(i,which) { iPos = 0 while (i!=null) {   iPos += i["offset" + which]  i = i.offsetParent } return iPos}function showLayers(sDest,itop,ileft,iWidth) { if (document.all!=null) {  var i = window.event.srcElement  stopTimer()  dest = document.all[sDest]  if ((oLastItem!=null) && (oLastItem!=dest))   hideItem()  if (dest) {   // Netscape Hack   if (i.offsetWidth==0)    if (iWidth)     i.offsetWidth=iWidth    else     i.offsetWidth=iNSWidth;   if (ileft)    dest.style.pixelLeft = ileft   else   dest.style.pixelLeft = getRealPosition(i,"Left") - 5 // 불러오는 메뉴 좌표//   dest.style.pixelLeft = getRealPosition(i,"Left") + i.offsetWidth *0.1 // 불러오는 메뉴 좌표   if (itop)    dest.style.pixelTop = itop   else       dest.style.pixelTop = getRealPosition(i,"Top") + 15 // 불러오는 메뉴 좌표   dest.style.visibility = "visible"  }  oLastItem = dest }}function stopTimer() { clearTimeout(sDisplayTimer)}function startTimer(el) { if (!el.contains(event.toElement)) {  stopTimer()  sDisplayTimer = setTimeout("hideItem()",iDelay) }}function hideItem() { if (oLastItem)  oLastItem.style.visibility="hidden"}function checkOver() { if ((oLastItem) && (oLastItem.contains(event.srcElement))) {  stopTimer() }}function checkOut() { if (oLastItem==event.srcElement)  startTimer(event.srcElement)}document.onmouseover = checkOverdocument.onmouseout = checkOut//--></SCRIPT><style type="text/css">/* 카테고리 스타일*/#box_day{width:45px; padding-left: 7px; padding-top: 4px; font-size:12pt; font-family:NanumGothicBoldWeb; font-weight:bold; float:left;}#box_list{width:100%; }#box_list2{width:100%; padding:5px 0px 5px 7px;}#box00{font-family:NanumGothicBoldWeb;width:40px;float:left;}#box01{font-family:NanumGothicBoldWeb;width:450px;float:left;}#box02{font-family:NanumGothicBoldWeb;width:240px;float:right;}#box03{font-family:NanumGothicBoldWeb;width:10px;float:right;}#box04{font-family:NanumGothicBoldWeb;width:10px;float:right;}a.day1:link, a.day1:visited, a.day1:active { font-family:NanumGothicBoldWeb; font-size:14px; text-decoration:none; color:#9e9e9e; }a.day1:hover { font-family:NanumGothicBoldWeb; font-size:16px;color:#9e9e9e; text-decoration:underline; font-weight:bold; }a.day2:link, a.day2:visited, a.day2:active { font-family:NanumGothicBoldWeb; font-size:14px; text-decoration:none; color:#9e9e9e; }a.day2:hover { font-family:NanumGothicBoldWeb; font-size:16px;color:#9e9e9e; text-decoration:underline; font-weight:bold; }a.day3:link, a.day3:visited, a.day3:active { font-family:NanumGothicBoldWeb; font-size:14px; text-decoration:none; color:#9e9e9e; }a.day3:hover { font-family:NanumGothicBoldWeb; font-size:16px;color:#9e9e9e; text-decoration:underline; font-weight:bold; }.day4 {font-family:Trebuchet MS;font-size:30px;color:#BFCF27;}.day5 {font-family:NanumGothicBoldWeb;font-size:14px;color:#6c91c3;}</style><table width="100%" height="39" border="0" cellpadding="0" cellspacing="0"><tr> <td valign="bottom"> <a href='board.php?bo_table=<?=$bo_table?>&mode=m2'><img src="<?=$board_skin_path?>/img/tab01_off.gif" border="0"></a><a href='board.php?bo_table=<?=$bo_table?>&mode=m'><img src="<?=$board_skin_path?>/img/tab02_on.gif" border="0"></a><a href='board.php?bo_table=<?=$bo_table?>&mode=w'><img src="<?=$board_skin_path?>/img/tab03_off.gif" border="0"></a><!--<a href='board.php?bo_table=<?=$bo_table?>&mode=l'><img src="<?=$board_skin_path?>/img/tab04_off.gif" border="0"></a>--><?   if ($admin_href) { echo "  &nbsp;<a href='$admin_href' title='관리자' onfocus='this.blur()'><img src='$board_skin_path/img/admin.gif' border=0 align=absmiddle></a>\n"; }?></td> <td ><div align="right"></span><span class="day4"><?=$year?></span><span class="day5">년</span><a href="<?="$_SERVER[PHP_SELF]?bo_table=$bo_table&mode=m"?><?if ($month == 1) { $year_pre=$year-1; $month_pre=$month; } else {$year_pre=$year-1; $month_pre=$month;} echo ("year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/btn_dw.gif" border="0" title="<?=$year_pre?>년" align="absmiddle" /></a> <a href="<?="$_SERVER[PHP_SELF]?bo_table=$bo_table&mode=m"?><?if ($month == 12) { $year_pre=$year+1; $month_pre=$month; } else {$year_pre=$year+1; $month_pre=$month;} echo ("&year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/btn_up.gif" border="0" title="<?=$year_pre?>년" align="absmiddle" /></a> <span class="day4"><?=$month?></span><span class="day5">월</span> <a href="<?="$_SERVER[PHP_SELF]?bo_table=$bo_table&mode=m"?><?if ($month == 1) { $year_pre=$year-1; $month_pre=12; } else {$year_pre=$year; $month_pre=$month-1;} echo ("year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/btn_dw.gif" border="0" title="<?=$month_pre?>월" align="absmiddle" /></a> <a href="<?="$_SERVER[PHP_SELF]?bo_table=$bo_table&mode=m"?><? if ($month == 12) { $year_pre=$year+1; $month_pre=1; } else {$year_pre=$year; $month_pre=$month+1;} echo ("&year=$year_pre&month=$month_pre");?>" target="_self" onfocus="this.blur()"><img src="<?=$board_skin_path?>/img/btn_up.gif" border="0" title="<?=$month_pre?>월" align="absmiddle" /></a></div> </td></tr><tr><td height="1" colspan="2" bgcolor="#B7BDCC"></td></tr><tr><td height="10" colspan="2"></td></tr></table><table width="100%" border="0"   style="border: 1px solid #B7BDCC;"> </table><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-left: 1px solid #B7BDCC; border-right: 1px solid #B7BDCC;" ><tr><td valign="middle"  ><?$cday = 1;$cel_mon = sprintf("%02d",$month);$query = "SELECT * FROM $write_table WHERE left(wr_link1,6) <= '$year$cel_mon' and left(wr_link2,6) >= '$year$cel_mon' ORDER BY wr_id ASC";$result = sql_query($query);$j=0; // layer id// 내용을 보여주는 부분while ($row = mysql_fetch_array($result)) {  if( substr($row[wr_link1],0,6) <  $year.$cel_mon ) {  $start_day =1;  $start_day= (int)$start_day;  } else {  $start_day = substr($row[wr_link1],6,2);     $start_day= (int)$start_day;  }  if( substr($row[wr_link2],0,6) >  $year.$cel_mon ) {  $end_day = $lastday[$month];  $end_day= (int)$end_day;  } else {  $end_day = substr($row[wr_link2],6,2);  $end_day= (int)$end_day;  } for ($i = $start_day ; $i <= $end_day;  $i++) {  $j++; // layer ID     $from_date = str_replace("http://","",$row[wr_link1]);     $to_date = str_replace("http://","",$row[wr_link2]);     $from_date = substr($from_date,0,4)."년 ".sprintf("%2d",substr($from_date,4,2))."월 ".sprintf("%2d",substr($from_date,6,2))."일";     $to_date   = substr($to_date,0,4)."년 ".sprintf("%2d",substr($to_date,4,2))."월 ".sprintf("%2d",substr($to_date,6,2))."일"; $html_day[$i].= "<div id='box_list1'>  <div id='box01' align='left'><a onmouseover=\"showLayers('popup_schd".$j."')\" onmouseout=\"startTimer(this)\"  href='$g4[bbs_path]/board.php?bo_table=$bo_table&year=$year&month=$month&wr_id=$row[wr_id]&mode=m' style='font-family:NanumGothicBoldWeb;'>".$row[wr_5]." ".$row[wr_subject]. "</a></div>  <div id='box03' align='center'> </div> <div id='box02' align='left'><font color=#8b8b8b>$from_date $row[wr_6] ~ $to_date $row[wr_7]</font></div><p>  </div>"."\n";?><DIV ID="popup_schd<?=$j?>" onmouseout="startTimer(event.srcElement)" style="BORDER-RIGHT: #B0BD2C 1px solid; BORDER-TOP: #B0BD2C 1px solid; BORDER-LEFT: #B0BD2C 1px solid; BORDER-BOTTOM: #B0BD2C 1px solid;  BACKGROUND-COLOR: #C9D832; FILTER: alpha(opacity=90); padding: 5 5 5 5; POSITION:absolute; width:200px; height:30px; top:-100px; visibility: hidden; Z-INDEX:1; font-family:NanumGothicBoldWeb;"><?$html = 0;if (strstr($row[wr_option], "html1"))    $html = 1;else if (strstr($row[wr_option], "html2"))    $html = 2;$viewlist = cut_str(conv_content($row[wr_content], $html),1000,"…");echo "<p><b><font color=#8b8b8b>".$row[wr_subject]. "</font></b><br>";echo " </p>";if($from_date != $to_date) {echo "<p><b><font color=#8b8b8b>기간 : $from_date $row[wr_6] ~ $to_date $row[wr_7]</font></b><br>";} else {echo "<b><font color=#8b8b8b>기간 : $from_date $row[wr_6]</font></b><br>";echo " </p>";}echo "";echo $viewlist;?></DIV><?}}?><?  // 달력의 틀을 보여주는 부분  $temp = 7- (($lastday[$month]+$dayoftheweek)%7);  if ($temp == 7) $temp = 0;     $lastcount = $lastday[$month]+$dayoftheweek + $temp;  for ($iz = 1; $iz <= $lastcount; $iz++) { // 42번을 칠하게 된다.    $bgcolor = "#ffffff";  // 쭉 흰색으로 칠하고    if ($b_year==$year && $b_mon==$month && $b_day==$cday) $bgcolor = "#EEF1D4";      //  "#DFFDDF"; // 오늘날짜 연두색으로 표기    if (($iz%7) == 1) echo ("<tr>"); // 주당 7개씩 한쎌씩을 쌓는다.    if ($dayoftheweek < $iz  &&  $iz <= $lastday[$month]+$dayoftheweek) {      // 전체 루프안에서 숫자가 들어가는 셀들만 해당됨      // 즉 11월 달에서 1일부터 30 일까지만 해당      $daytext = "$cday";   // $cday 는 숫자 예> 11월달은 1~ 30일 까지      //$daytext 은 셀에 써질 날짜 숫자 넣을 공간      $daycontcolor = "" ;       $daycolor = "";       if ($iz%7 == 1) {$daycolor = "#E75A53"; $bgcolor = "#FEFAFF";} // 일요일      if ($iz%7 == 0) {$daycolor = "#6c91c3"; $bgcolor = "#F0F8FF";} // 토요일  // 여기까지 숫자와 들어갈 내용에 대한 변수들의 세팅이 끝나고  // 이제 여기 부터 직접 셀이 그려지면서 그 안에 내용이 들어 간다.  echo ("<tr><td class=tbline3 bgcolor=$bgcolor valign=top onmouseover=this.style.backgroundColor='#F8FFDA' onmouseout=this.style.backgroundColor=''>\n");      $f_date = $year.sprintf("%02d",$month).sprintf("%02d",$cday);      // 기념일 파일 내용 비교위한 변수 선언, 월과 일을 두자리 포맷으로 고정      if (strlen($month) == 1) {         $monthp = "0".$month ;      } else {        $monthp = $month ;       }      if (strlen($cday) == 1) {        $cdayp = "0".$cday ;      } else {         $cdayp = $cday ;       }      $memday = $year.$monthp.$cdayp;      // *.0000 파일인 해마다 동일한 양력기념일은 월일로만 구분한다.      if( !file_exists($file_index.".".$year)) { $memday = $monthp.$cdayp; }      $daycont = "" ;      // 년월일 8자리 또는 4자리를 잘라 비교하여 뒷 문장을 출력      for($i=0 ; $i < sizeof($dayfile) ; $i++) {  // 파일 첫 행부터 끝행까지 루프        if($memday == substr($dayfile[$i],$cutpoint1,$cutpoint2)){$daycont = substr($dayfile[$i],9,strlen($dayfile[$i])-10);         // r,b,y,g 구분자로 글자색깔 구분        $daycl = substr($dayfile[$i],0,1) ;        if($daycl == "r"){          $daycontcolor = "red" ; // 휴일          $daycolor = "red";         }        else if($daycl == "y"){$daycontcolor = "brown" ;} // 생일        else if($daycl == "g"){$daycontcolor = "gray" ;} // 음력        else{$daycontcolor = "blue" ;}      }     }    // 석봉운님의 음력날짜 변수선언    $myarray = soltolun($year,$month,$cday);    if ($myarray[day]==1 || $myarray[day]==11 || $myarray[day]==21) {      //$moonday ="<font color=gray>&nbsp;(음)$myarray[month].$myarray[day]$myarray[leap]</font>";   $moonday="";    } else {      $moonday="";    }    //include("$schedule_file.moon"); // 음력절기 & 음력기념일    if ($annivmoonday&&$daycont) $blank="<br>"; // 음력절기와 양력기념일이 동시에 있으면 한칸 띔    else $blank="";   //글쓰기 권한여부  if ($write_href) {   echo "<div id='box_day' align='center'><a href='$write_href&f_date=$f_date&t_date=$f_date&mode=m' style='font-family:NanumGothicBoldWeb; font-size:12px;'><font color='$daycolor' style='font-family:NanumGothicBoldWeb;'>$daytext</font></a></div>\n";  }  else {   echo "<div id='box_day' align='center'><font color='$daycolor' style='font-family:NanumGothicBoldWeb; font-size:12px;'>$daytext</font></div>\n";  }  echo "<div id='box_list'>$html_day[$cday]</div>\n";  echo ("</td></tr>\n");  // 한칸을 마무리 $cday++; // 날짜를 카운팅 } // 날짜가 없을경우 else { echo ("\n"); } if (($iz%7) == 0) echo ("</tr>\n");}?></table>​
 
|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트

코드가 굉장히 복잡하네요...

td에 class="tbline3"이 있네요...

해당 스킨폴더에 style.css 21번째 줄 같네요..

padding을 줘보세요.. 

답변에 대한 댓글 1개

(T^T) 감사합니다~~~ 조절되고있오요~~~ ㄳㄳㄳ 미소가득한 하루되세요~

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