메뉴관련 초보질문좀 드립니다.

메뉴관련 초보질문좀 드립니다.

QA

메뉴관련 초보질문좀 드립니다.

답변 3

본문

메뉴관련 질문좀 드립니다.
사진에 있는 위치에 칸을 나눠서 메뉴를 넣고 싶은데 며칠째 헤메고 있습니다.
칸을 나누면 일정하게 나눠지지가 않고 나누다 보면 전체적인 테이블이 밀리거나 커저서 헤메고 있습니다.
고수님들 답변좀 주세요
 
헤메고 있는
nnn.JPG

그누"head.php" 소수입니다.
 
<!-- 검색 시작 -->
<table align="center" width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td width="43" height="11"></td>
    <td width="220"></td>
    <td width=""></td>
    <td width="234"></td>
    <td width="35"></td>
</tr>
<tr>
    <td height="33"><img src="<?=$g4['path']?>/img/bar_01.gif" width="43" height="33"></td>
 <td><img src="<?=$g4['path']?>/img/bar_02.gif" width="220" height="33"></td>
 <td background="<?=$g4['path']?>/img/bar_03.gif" width="472" height="40"><table width=100% cellpadding=0 cellspacing=0><tr><td width=25> </td><td><?//=popular();?></td></tr></table></td>
 <td>
        <form name="fsearchbox" method="get" onsubmit="return fsearchbox_submit(this);" style="margin:0px;">
        <!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
        <input type="hidden" name="sfl" value="wr_subject||wr_content">
        <input type="hidden" name="sop" value="and">
        <table width="100%" height="33" cellspacing="0" cellpadding="0">
        <tr>
            <td width="5" height="25"><img src="<?=$g4['path']?>/img/search_01.gif" width="5" height="40"></td>
   <td width="166" valign="middle" bgcolor="blue"><INPUT name="stx" type="text" style="BORDER : 1px solid; width: 155px; HEIGHT: 20px; BACKGROUND-COLOR: #F4F4F4" maxlength="20"></td>
            <td width="2"><img src="<?=$g4['path']?>/img/search_02.gif" width="2" height="40"></td>
            <td width="48"><input type="image" src="<?=$g4['path']?>/img/search_button.gif" width="48" height="40" border="0"></td>
   <td width="13"><img src="<?=$g4['path']?>/img/search_03.gif" width="13" height="40"></td>
         </tr>
  <tr>
  
         </tr> 
        </table>

이 질문에 댓글 쓰기 :

답변 3

아래 form도 안닫혀 있구만, 일부만 보여주면 우째 압니까?
 
<?=$table_width?>를 맨꼭대기에 넣어보시고, 숫자가 얼마인지 보셈
만약 1004보다 작은 숫자가 표기되어있으면(참고로 님의 테이블 가로는 1004네요)
 <td background="<?=$g4['path']?>/img/bar_03.gif" width="472" height="40">
여기서 width 숫자를 줄이셔야함
 
그리고 <td height="33"> 이거 부분보면 40으로 고쳐서 다 맞추셈
<?
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");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 1004;
?>
<!-- 상단 배경 시작 -->
<table align="center" width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td background="<?=$g4['path']?>/img/top_img_bg.gif">
        <table width="100%" height="52" cellspacing="0" cellpadding="0">
        <tr>
  <td><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="52"></td>
       </tr>
        </table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->
<!-- 상단 로고 및 버튼 시작 -->
<table align="center" width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td width="43" height="57"></td>
    <!-- 로고 -->
    <td width="220"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.jpg" width="220" height="57" border="0"></a></td>
    <td>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
        <td> </td>
  </tr>
        </table>
    </td>
    <td width="390" align="right">
        <table border="0" cellspacing="0" cellpadding="0">
        <tr>
            <!-- 처음으로 버튼 -->
            <td width="78"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/top_m01.gif" width="78" height="31" border="0"></a></td>
            <? if (!$member['mb_id']) { ?>
            <!-- 로그인 이전 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4['path']?>/img/top_m02.gif" width="78" height="31" border="0"></a></td>
            <td width="78"><a href="<?=$g4['bbs_path']?>/register.php"><img src="<?=$g4['path']?>/img/top_m03.gif" width="78" height="31" border="0"></a></td>
            <? } else { ?>
            <!-- 로그인 이후 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4['path']?>/img/top_m04.gif" width="78" height="31" border="0"></a></td>
            <td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$g4['path']?>/img/top_m05.gif" width="78" height="31" border="0"></a></td>
            <? } ?>
            <!-- 최근게시물 버튼 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/new.php"><img src="<?=$g4['path']?>/img/top_m06.gif" width="78" height="31" border="0"></a></td>
        </tr>
        </table></td>
    <td width="35"></td>
</tr>
</table>
<!-- 상단 로고 및 버튼 끝 -->
<!-- 검색 시작 -->
<table align="center" width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td width="43" height="11"></td>
    <td width="220"></td>
    <td width=""></td>
    <td width="234"></td>
    <td width="35"></td>
</tr>
<tr>
    <td height="33"><img src="<?=$g4['path']?>/img/bar_01.gif" width="43" height="33"></td>
 <td><img src="<?=$g4['path']?>/img/bar_02.gif" width="220" height="33"></td>
 <td background="<?=$g4['path']?>/img/bar_03.gif" width="472" height="40"><table width=100% cellpadding=0 cellspacing=0><tr><td width=25> </td><td><?//=popular();?></td></tr></table></td>
 <td>
        <form name="fsearchbox" method="get" onsubmit="return fsearchbox_submit(this);" style="margin:0px;">
        <!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
        <input type="hidden" name="sfl" value="wr_subject||wr_content">
        <input type="hidden" name="sop" value="and">
        <table width="100%" height="33" cellspacing="0" cellpadding="0">
        <tr>
            <td width="5" height="25"><img src="<?=$g4['path']?>/img/search_01.gif" width="5" height="40"></td>
   <td width="166" valign="middle" bgcolor="blue"><INPUT name="stx" type="text" style="BORDER : 1px solid; width: 155px; HEIGHT: 20px; BACKGROUND-COLOR: #F4F4F4" maxlength="20"></td>
            <td width="2"><img src="<?=$g4['path']?>/img/search_02.gif" width="2" height="40"></td>
            <td width="48"><input type="image" src="<?=$g4['path']?>/img/search_button.gif" width="48" height="40" border="0"></td>
   <td width="13"><img src="<?=$g4['path']?>/img/search_03.gif" width="13" height="40"></td>
         </tr>
  <tr>
  
         </tr> 
        </table>
        </form>
    </td>
    <td></td>
</tr>
</table>
<script type="text/javascript">
function fsearchbox_submit(f)
{
    if (f.stx.value.length < 2) {
        alert("검색어는 두글자 이상 입력하십시오.");
        f.stx.select();
        f.stx.focus();
        return false;
    }
    // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
    var cnt = 0;
    for (var i=0; i<f.stx.value.length; i++) {
        if (f.stx.value.charAt(i) == ' ')
            cnt++;
    }
    if (cnt > 1) {
        alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
        f.stx.select();
        f.stx.focus();
        return false;
    }
    f.action = "<?=$g4['bbs_path']?>/search.php";
    return true;
}
</script>
<!-- 검색 끝 -->
 
form 운비님 폼이 안닫혀있다는 얘기가 이해가 안되서요 어캐 닿는거저 닿는거하고 안닿는거하고 어떤차이인가여ㅜㅡ
그리고 운비님 width="472" 저 부분을 칸을 늘린거 만큼 줄이면서 해도 안되드라구여 그래서 생각대로 안되서 그래요
답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
  • 질문이 없습니다.
전체 0
© SIRSOFT
현재 페이지 제일 처음으로