메뉴아래에 빈공간이 생기는데... 정보
메뉴아래에 빈공간이 생기는데...관련링크
http://gasi.na.mu
174회 연결
첨부파일
본문
사이트 보시면 가시나무라는 메뉴에서 왼쪽 메뉴리스트에 보면 가시나무라는 메뉴아래에 빈공간이 생깁니다. 보이진 않지만 배너관리가 하나더 있고요(관리자로그인시만 보임) 결국 2개의 빈공간이 생기는데 이유를 모르겠네요, 메뉴를 2개이상 늘리면 이상없는데 그 이하의 숫자로 메뉴를 구성하면 빈공간이 생깁니다. 소스 첨부합니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 900;
//print_r2($g4);
//$dir = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
?>
//$dir = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
?>
<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img && img.altsrc) {
img.src = img.altsrc;
img.altsrc = null;
}
}
<!--
function na_restore_img_src(name, nsdoc)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img && img.altsrc) {
img.src = img.altsrc;
img.altsrc = null;
}
}
function na_preload_img()
{
var img_list = na_preload_img.arguments;
if (document.preloadlist == null)
document.preloadlist = new Array();
var top = document.preloadlist.length;
for (var i=0; i < img_list.length; i++) {
document.preloadlist[top+i] = new Image;
document.preloadlist[top+i].src = img_list[i+1];
}
}
{
var img_list = na_preload_img.arguments;
if (document.preloadlist == null)
document.preloadlist = new Array();
var top = document.preloadlist.length;
for (var i=0; i < img_list.length; i++) {
document.preloadlist[top+i] = new Image;
document.preloadlist[top+i].src = img_list[i+1];
}
}
function na_change_img_src(name, nsdoc, rpath, preload)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img) {
img.altsrc = img.src;
img.src = rpath;
}
}
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img) {
img.altsrc = img.src;
img.src = rpath;
}
}
// -->
</script>
</script>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" OnLoad="na_preload_img(false, 'img/img2/menu01_2.gif', 'img/img2/menu02_2.gif', 'img/img2/menu03_2.gif', 'img/img2/menu04_2.gif');">
<table cellpadding="0" cellspacing="0" width="1000" align="center">
<tr>
<td width="900">
<table width="900" height="72" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="65">
<table align="center" cellpadding="0" cellspacing="0" width="900">
<tr>
<td width="195" height="65" valign="middle" align="center"><a href="<?=$g4[path]?>/"><img src="<?=$g4[path]?>/img/img2/logo.gif" width="190" height="65" border="0"></a></td>
<td width="299" height="65"></td>
<td width="406" height="65" align="right">
<table cellpadding="0" cellspacing="0" width="420">
<tr>
<td width="620" height="25" align="right">
<font style='font-family:돋움; font-size:8pt; color:#777777;'><a href="<?=$g4[path]?>/">HOME</a> |</font> <font style='font-family:돋움; font-size:9pt; color:#777777;'><? if (!$member[mb_id]) { ?></font><font style='font-family:돋움; font-size:8pt; color:#777777;'><font style='font-family:돋움; font-size:9pt; color:#777777;'><a href="<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>"><font style='font-family:돋움; font-size:8pt; color:#777777;'>로그인</font></a> <? } else { ?> <font style='font-family:돋움; font-size:8pt; color:#777777;'><a href="<?=$g4[bbs_path]?>/logout.php">로그아웃</a> </font><? } ?> <!--<a href="<?=$g4[path]?>/bbs/board.php?bo_table=qa"><font style='font-family:돋움; font-size:8pt; color:#777777;'>사이트맵</font></a></font></font>--></td>
</tr>
<tr>
<td width="620" height="40" align="right"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="80" align="center">
<table cellpadding="0" cellspacing="0" width="900" align="center">
<tr>
<td height="85">
<table cellpadding="0" cellspacing="0" width="900">
<tr>
<td width="10" height="85" background="<?=$g4[path]?>/img/img2/bar01.gif"></td>
<td width="880" height="85" background="<?=$g4[path]?>/img/img2/bar02.gif">
<table cellpadding="0" cellspacing="0" width="880" align="center">
<tr>
<td width="880" height="50">
<table cellpadding="0" cellspacing="0" width="880" align="center">
<tr>
<td width="555" height="50"></td>
<td width="75" height="50"><a href="<?=$g4[path]?>/bbs/board.php?bo_table=html1_1" OnMouseOut="na_restore_img_src('image1', 'document')" OnMouseOver="na_change_img_src('image1', 'document', '<?=$g4[path]?>/img/img2/menu01_2.gif', true);"><img src="<?=$g4[path]?>/img/img2/menu01.gif" width="75" height="50" border="0" name="image1"></a></td>
<td width="10" height="50"><img src="<?=$g4[path]?>/img/img2/menu00.gif" width="10" height="50" border="0"></td>
<td width="70" height="50"><a href="<?=$g4[path]?>/bbs/board.php?bo_table=product1_1" OnMouseOut="na_restore_img_src('image2', 'document')" OnMouseOver="na_change_img_src('image2', 'document', '<?=$g4[path]?>/img/img2/menu02_2.gif', true);"><img src="<?=$g4[path]?>/img/img2/menu02.gif" width="70" height="50" border="0" name="image2"></a></td>
<td width="10" height="50"><img src="<?=$g4[path]?>/img/img2/menu00.gif" width="10" height="50" border="0"></td>
<td width="75" height="50"><a href="<?=$g4[path]?>/bbs/board.php?bo_table=m1_1" OnMouseOut="na_restore_img_src('image3', 'document')" OnMouseOver="na_change_img_src('image3', 'document', '<?=$g4[path]?>/img/img2/menu03_2.gif', true);"><img src="<?=$g4[path]?>/img/img2/menu03.gif" width="75" height="50" border="0" name="image3"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="880" height="35">
<table cellpadding="0" cellspacing="0" width="614">
<tr>
<td width="169" height="25"><font style='font-family:굴림; font-size:9pt; color:#666666;'><? include_once("$g4[path]/file/day.php"); ?></font></td>
<td width="445" height="25"><!--<?=popular("basic");?>--></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="10" height="85" background="<?=$g4[path]?>/img/img2/bar03.gif" align="center"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="135">
<table cellpadding="0" cellspacing="0" width="900">
<tr>
<td width="190" height="135" background="<?=$g4[path]?>/img/img2/login_bg.gif" valign="top">
<table cellpadding="0" cellspacing="0">
<tr>
<td width="180" height="35"></td>
</tr>
<tr>
<td width="180" height="90" align="center" valign="top"><?=outlogin("login_10"); // 외부 로그인 ?></td>
</tr>
</table>
</td>
<td width="710" height="135"><img src="<?=$g4[path]?>/img/img2/sub/img.gif" width="710" height="135" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
<td width="900">
<table width="900" height="72" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="65">
<table align="center" cellpadding="0" cellspacing="0" width="900">
<tr>
<td width="195" height="65" valign="middle" align="center"><a href="<?=$g4[path]?>/"><img src="<?=$g4[path]?>/img/img2/logo.gif" width="190" height="65" border="0"></a></td>
<td width="299" height="65"></td>
<td width="406" height="65" align="right">
<table cellpadding="0" cellspacing="0" width="420">
<tr>
<td width="620" height="25" align="right">
<font style='font-family:돋움; font-size:8pt; color:#777777;'><a href="<?=$g4[path]?>/">HOME</a> |</font> <font style='font-family:돋움; font-size:9pt; color:#777777;'><? if (!$member[mb_id]) { ?></font><font style='font-family:돋움; font-size:8pt; color:#777777;'><font style='font-family:돋움; font-size:9pt; color:#777777;'><a href="<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>"><font style='font-family:돋움; font-size:8pt; color:#777777;'>로그인</font></a> <? } else { ?> <font style='font-family:돋움; font-size:8pt; color:#777777;'><a href="<?=$g4[bbs_path]?>/logout.php">로그아웃</a> </font><? } ?> <!--<a href="<?=$g4[path]?>/bbs/board.php?bo_table=qa"><font style='font-family:돋움; font-size:8pt; color:#777777;'>사이트맵</font></a></font></font>--></td>
</tr>
<tr>
<td width="620" height="40" align="right"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="80" align="center">
<table cellpadding="0" cellspacing="0" width="900" align="center">
<tr>
<td height="85">
<table cellpadding="0" cellspacing="0" width="900">
<tr>
<td width="10" height="85" background="<?=$g4[path]?>/img/img2/bar01.gif"></td>
<td width="880" height="85" background="<?=$g4[path]?>/img/img2/bar02.gif">
<table cellpadding="0" cellspacing="0" width="880" align="center">
<tr>
<td width="880" height="50">
<table cellpadding="0" cellspacing="0" width="880" align="center">
<tr>
<td width="555" height="50"></td>
<td width="75" height="50"><a href="<?=$g4[path]?>/bbs/board.php?bo_table=html1_1" OnMouseOut="na_restore_img_src('image1', 'document')" OnMouseOver="na_change_img_src('image1', 'document', '<?=$g4[path]?>/img/img2/menu01_2.gif', true);"><img src="<?=$g4[path]?>/img/img2/menu01.gif" width="75" height="50" border="0" name="image1"></a></td>
<td width="10" height="50"><img src="<?=$g4[path]?>/img/img2/menu00.gif" width="10" height="50" border="0"></td>
<td width="70" height="50"><a href="<?=$g4[path]?>/bbs/board.php?bo_table=product1_1" OnMouseOut="na_restore_img_src('image2', 'document')" OnMouseOver="na_change_img_src('image2', 'document', '<?=$g4[path]?>/img/img2/menu02_2.gif', true);"><img src="<?=$g4[path]?>/img/img2/menu02.gif" width="70" height="50" border="0" name="image2"></a></td>
<td width="10" height="50"><img src="<?=$g4[path]?>/img/img2/menu00.gif" width="10" height="50" border="0"></td>
<td width="75" height="50"><a href="<?=$g4[path]?>/bbs/board.php?bo_table=m1_1" OnMouseOut="na_restore_img_src('image3', 'document')" OnMouseOver="na_change_img_src('image3', 'document', '<?=$g4[path]?>/img/img2/menu03_2.gif', true);"><img src="<?=$g4[path]?>/img/img2/menu03.gif" width="75" height="50" border="0" name="image3"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="880" height="35">
<table cellpadding="0" cellspacing="0" width="614">
<tr>
<td width="169" height="25"><font style='font-family:굴림; font-size:9pt; color:#666666;'><? include_once("$g4[path]/file/day.php"); ?></font></td>
<td width="445" height="25"><!--<?=popular("basic");?>--></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="10" height="85" background="<?=$g4[path]?>/img/img2/bar03.gif" align="center"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="135">
<table cellpadding="0" cellspacing="0" width="900">
<tr>
<td width="190" height="135" background="<?=$g4[path]?>/img/img2/login_bg.gif" valign="top">
<table cellpadding="0" cellspacing="0">
<tr>
<td width="180" height="35"></td>
</tr>
<tr>
<td width="180" height="90" align="center" valign="top"><?=outlogin("login_10"); // 외부 로그인 ?></td>
</tr>
</table>
</td>
<td width="710" height="135"><img src="<?=$g4[path]?>/img/img2/sub/img.gif" width="710" height="135" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="900" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center" width="900" valign="top">
<tr>
<td align="center" width="900" valign="top">
<table width="900" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="190" valign="top" align="center" height="356">
<table cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="289" align="center" valign="top">
<table align="center" cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="50"><img src="<?=$g4[path]?>/img/img2/sub/c_tit.gif" width="190" height="50" border="0"></td>
</tr>
<tr>
<td width="190" height="105" background="<?=$g4[path]?>/img/img2/sub/menu_bg.gif" valign="top">
<table cellpadding="0" cellspacing="0" width="174">
<tr>
<td width="28" height="25"></td>
<td width="146" height="25"><span style="font-size:9pt;"><font color="#666666"><a href="<?=$g4[path]?>/bbs/board.php?bo_table=html1_1">가시나무</a></font></span></td>
</tr>
<? if ($member[mb_level] >= '10'){ ?>
<tr>
<td width="28" height="25"></td>
<td width="146" height="25"><span style="font-size:9pt;"><font color="#666666"><a href="<?=$g4[path]?>/bbs/board.php?bo_table=banner">배너관리</a></font></span><td>
</tr>
<? } ?>
</table>
</td>
</tr>
<tr>
<td width="190" height="154" background="<?=$g4[path]?>/img/img2/sub/menu_tail.gif"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="190" height="17" align="center" valign="top"></td>
</tr>
<tr>
<td width="190" height="25" align="center" valign="top"></td>
</tr>
</table>
</td>
<td width="3" valign="top" align="center" height="356"></td>
<td width="710" height="356" valign="top" background="<?=$g4[path]?>/img/2006/main/c_bg.gif">
<table cellpadding="0" cellspacing="0" width="710">
<tr>
<td width="25" height="35" background="<?=$g4[path]?>/img/img2/navi01.gif"> </td>
<td width="675" height="35" background="<?=$g4[path]?>/img/img2/navi02.gif"><? include_once("$g4[path]/file/navi.php"); ?></td>
<td width="10" height="35" background="<?=$g4[path]?>/img/img2/navi03.gif"></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="705">
<tr>
<td width="705"><img src="<?=$g4[path]?>/img/img2/c_line01.gif" width="705" height="20" border="0"></td>
</tr>
<tr>
<td width="705" height="96" background="<?=$g4[path]?>/img/img2/c_line02.gif" align="center" valign="top">
<tr>
<td width="190" valign="top" align="center" height="356">
<table cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="289" align="center" valign="top">
<table align="center" cellpadding="0" cellspacing="0" width="190">
<tr>
<td width="190" height="50"><img src="<?=$g4[path]?>/img/img2/sub/c_tit.gif" width="190" height="50" border="0"></td>
</tr>
<tr>
<td width="190" height="105" background="<?=$g4[path]?>/img/img2/sub/menu_bg.gif" valign="top">
<table cellpadding="0" cellspacing="0" width="174">
<tr>
<td width="28" height="25"></td>
<td width="146" height="25"><span style="font-size:9pt;"><font color="#666666"><a href="<?=$g4[path]?>/bbs/board.php?bo_table=html1_1">가시나무</a></font></span></td>
</tr>
<? if ($member[mb_level] >= '10'){ ?>
<tr>
<td width="28" height="25"></td>
<td width="146" height="25"><span style="font-size:9pt;"><font color="#666666"><a href="<?=$g4[path]?>/bbs/board.php?bo_table=banner">배너관리</a></font></span><td>
</tr>
<? } ?>
</table>
</td>
</tr>
<tr>
<td width="190" height="154" background="<?=$g4[path]?>/img/img2/sub/menu_tail.gif"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="190" height="17" align="center" valign="top"></td>
</tr>
<tr>
<td width="190" height="25" align="center" valign="top"></td>
</tr>
</table>
</td>
<td width="3" valign="top" align="center" height="356"></td>
<td width="710" height="356" valign="top" background="<?=$g4[path]?>/img/2006/main/c_bg.gif">
<table cellpadding="0" cellspacing="0" width="710">
<tr>
<td width="25" height="35" background="<?=$g4[path]?>/img/img2/navi01.gif"> </td>
<td width="675" height="35" background="<?=$g4[path]?>/img/img2/navi02.gif"><? include_once("$g4[path]/file/navi.php"); ?></td>
<td width="10" height="35" background="<?=$g4[path]?>/img/img2/navi03.gif"></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="705">
<tr>
<td width="705"><img src="<?=$g4[path]?>/img/img2/c_line01.gif" width="705" height="20" border="0"></td>
</tr>
<tr>
<td width="705" height="96" background="<?=$g4[path]?>/img/img2/c_line02.gif" align="center" valign="top">
댓글 전체
<td width="190" height="105" background="<?=$g4[path]?>/img/img2/sub/menu_bg.gif" valign="top">
위에 105로 높이를 지정해 놓으시고..
관리자가 아닐경우 해당 TD의 높이는 50밖에 되질 않습니다.. 나머지 55의 공백이 생기게 될테고..
그위에 TD 그위에 TD도. 다 높이가 지정되어 있네요..
table의 경우 높이는 컨텐츠에 따라 자동으로 늘어나게 됩니다.
위에 105로 높이를 지정해 놓으시고..
관리자가 아닐경우 해당 TD의 높이는 50밖에 되질 않습니다.. 나머지 55의 공백이 생기게 될테고..
그위에 TD 그위에 TD도. 다 높이가 지정되어 있네요..
table의 경우 높이는 컨텐츠에 따라 자동으로 늘어나게 됩니다.
height="105" 이걸 없애니 잘되네요 감사합니다.