제작후 오류. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

제작후 오류. 정보

제작후 오류.

본문

CSS로 처음제작해 보았습니다.
(PC용으로는)

아래가 index.php 소스입니다.
참고로, _head.php 불러오는 것을 안합니다.

-----
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./_common.php");
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());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<html>
<head>
<title>W-RN: Web - Rain Neo Ver 9</title>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<meta name="generator" content="W-RN">
<link rel="StyleSheet" href="http://www.w-rn.com/css/main.css" type="text/css"  media="screen">
</head>
<body>
<div id="hh">
<img src="http://www.w-rn.com/rain/title.png">
</div>
<div id="ww">
<div id="mm">
<p align="right">
        <table border="0" cellspacing="0" cellpadding="0" align="right">
        <tr>
            <!-- 처음으로 버튼 -->
            <td width="78"><a href="http://www.w-rn.com/">HOME</a></td>

            <? if (!$member['mb_id']) { ?>
            <!-- 로그인 이전 -->
            <td width="78"><a href="http://www.w-rn.com/login.php?url=<?=$urlencode?>">로그인</a></td>
            <td width="78"><a href="http://www.w-rn.com/register.php">회원가입</a></td>
            <? } else { ?>
            <!-- 로그인 이후 -->
            <td width="78"><a href="http://www.w-rn.com/logout.php">로그아웃</a></td>
            <td width="78"><a href="http://www.w-rn.com/member_confirm.php?url=register_form.php">정보수정</a></td>
            <? } ?>
           
            <!-- 최근게시물 버튼 -->
            <td width="78"><a href="http://www.w-rn.com/new.php">최근게시물</a></td>

        </tr>
        </table>
</p>
<br>
<center>
<!-- 정보-->
<table id="Table_01" width="800" height="190" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="http://www.w-rn.com/rain/info.png" width="330" height="190" alt=""></td>
<td>
<a href="http://www.w-rn.com">
<img src="http://www.w-rn.com/rain/logo.png" width="152" height="190" border="0" alt=""></a></td>
<td>
<img src="http://www.w-rn.com/rain/admin.png" width="318" height="190" alt=""></td>
</tr>
</table>
<!-- 정보-->
<br>
<!-- 메인메뉴 -->
<table id="Table_02" width="698" height="79" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="http://www.w-rn.com/rain/L_1.png" width="11" height="52" alt=""></td>
<td>
<a href="http://www.w-rn.com/">
<img src="http://www.w-rn.com/rain/home.png" width="103" height="52" border="0" alt=""></a></td>
<td>
<a href="http://www.w-rn.com/community.php">
<img src="http://www.w-rn.com/rain/community.png" width="143" height="52" border="0" alt=""></a></td>
<td colspan="2">
<a href="http://www.w-rn.com/products.php">
<img src="http://www.w-rn.com/rain/products.png" width="99" height="52" border="0" alt=""></a></td>
<td colspan="2">
<a href="http://www.w-rn.com/service.php">
<img src="http://www.w-rn.com/rain/service.png" width="96" height="52" border="0" alt=""></a></td>
<td>
<a href="#">
<img src="http://www.w-rn.com/rain/document.png" width="139" height="52" border="0" alt=""></a></td>
<td>
<a href="http://www.w-rn.com/center.php">
<img src="http://www.w-rn.com/rain/center.png" width="91" height="52" border="0" alt=""></a></td>
<td>
<img src="http://www.w-rn.com/rain/R_1.png" width="16" height="52" alt=""></td>
</tr>
<tr>
<td>
<img src="http://www.w-rn.com/rain/spacer.gif" width="11" height="1" alt=""></td>
<td>
<img src="http://www.w-rn.com/rain/spacer.gif" width="103" height="1" alt=""></td>
<td>
<img src="http://www.w-rn.com/rain/spacer.gif" width="143" height="1" alt=""></td>
<td>
<img src="http://www.w-rn.com/rain/spacer.gif" width="29" height="1" alt=""></td>
<td>
<img src="http://www.w-rn.com/rain/spacer.gif" width="70" height="1" alt=""></td>
<td>
<img src="http://www.w-rn.com/rain/spacer.gif" width="82" height="1" alt=""></td>
<td>
<img src="http://www.w-rn.com/rain/spacer.gif" width="14" height="1" alt=""></td>
<td>
<img src="http://www.w-rn.com/rain/spacer.gif" width="139" height="1" alt=""></td>
<td>
<img src="http://www.w-rn.com/rain/spacer.gif" width="91" height="1" alt=""></td>
<td>
<img src="http://www.w-rn.com/rain/spacer.gif" width="16" height="1" alt=""></td>
</tr>
</table>
<!-- 메인메뉴 -->
</center>
</div>
<div id="extra">

<p>W-RN</p>
<p>
<a href="http://www.w-rn.com/bbs/board.php?bo_table=notice">공지사항</a><br>
<a href="http://www.w-rn.com/bbs/board.php?bo_table=event">이벤트</a><br>
</p>
</div>
<div id="navigation">
<p>
 네임서버
<br>
<font size="8">
ns.w-rn.com <br>
ns2.w-rn.com<br>
IP:114.108.129.142<br>
</font>
</div>
<div id="cc">
<p>w-rn방문을 환영합니다.</p>
<br>
<object name="allblet" id="allblet_player_5e769326781fed90f57b22cbfc31333a" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="470" height="70">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="true" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="movie" value="http://showman.allblet.net/abp.swf" />
<param name="FlashVars" value="aid=114404&type=9" />
<embed src="http://showman.allblet.net/abp.swf" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" flashvars="aid=114404&type=9" width="470" height="70" />
</object>
<?
include_once("./tail.php");
?>
-----

아래는 CSS파일입니다.

----
/*
이 CSS파일은 W-RN의 템플릿용 파일입니다.
누구도 사용할수 없음을 알려드립니다.
*/
html{margin:0;padding:0}
body{margin:0;padding:0}
/*
html,body부분 공백을 없애 주는 CSS문장.
*/
.body{font: 12px arial,sans-serif}
#ww{
float:left;
width:100%
}
#hh{
height:83px;
line-height:83px;
background:url("http:/www.w-rn.com/rain/head.png");
background-repeat:repeat-x;
}
#mm{
width:100%
height:56px;
margin-top:50px;
margin-bottom:60px;
}
#cc{
margin-top:30px;
width:516px;
position:relative;
padding-left:170px;
line-height:1.2
}
#navigation{
float:right;
background:url("http:/www.w-rn.com/rain/m_info.png");
width:115px;
height:419px;
margin-left:-130px;
}
#extra{
background:url("http:/www.w-rn.com/rain/submenu.png");
float:left;
width:169px;
height:419px;
margin-left:-100%
margin-top:50px;
}
#extra p{
color:#FFFFFF;
font-size:10px;
}
#extra a{
color:#526169;
font-size:10px;
}
#tail{
background:url("http:/www.w-rn.com/rain/tail.png");
background-repeat:repeat-x;
height:92px;
line-height:92px;
margin-top:50px;
}
----

이현상의 결과는 링크1 과 같습니다.
공백만 뜹니다.

html으로저장하면 잘뜨는데말이죠.

댓글 전체

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

인덱스에서 직접 실행하는 것이면 위에 한줄 지워주셔야 되죠.

그리고 head.sub.php 파일에서 html head title body 태그가 있음으로 index.php 에서 또 써줄 필요가 없지요.
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT