div중앙정렬질문입니다.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>DreamTemplate</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/swfobject/swfobject.js"></script>
상단부분에 요렇게 할때는 익스에서도중앙정렬이잘되는데
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.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");
$g4['title'] = "";
?>
상단에php코드를 삽입하면 좌측정렬이되버립니다. 크롬이나파폭에서는 중앙정렬이되는데
익스서는 php코드삽입후 좌측정렬이되버리는데 무슨이유인가요?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>DreamTemplate</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/swfobject/swfobject.js"></script>
상단부분에 요렇게 할때는 익스에서도중앙정렬이잘되는데
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.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");
$g4['title'] = "";
?>
상단에php코드를 삽입하면 좌측정렬이되버립니다. 크롬이나파폭에서는 중앙정렬이되는데
익스서는 php코드삽입후 좌측정렬이되버리는데 무슨이유인가요?
댓글 7개
Acazen
15년 전
모바일사파리환경에서도 잘작동합니다.
가끔가다..php파일이될경우 정렬안되는 점도있는데..
기존 그누소스와 제작소스의 설정이 달라 생길수도있네요..
안되면 <center></center>로 정렬시키는것도 좋아요.
IF함수로 익스일때만적용하는것도 좋겠네요.
초보자라별 도움안될것 같네요.죄송합니다.
가끔가다..php파일이될경우 정렬안되는 점도있는데..
기존 그누소스와 제작소스의 설정이 달라 생길수도있네요..
안되면 <center></center>로 정렬시키는것도 좋아요.
IF함수로 익스일때만적용하는것도 좋겠네요.
초보자라별 도움안될것 같네요.죄송합니다.
15년 전
안녕하세요~^^ 답변감사드립니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.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");
$g4['title'] = "";
?>
이코드를상단에넣으면 기존 독타입은 밑으로 내려가는데
시험해본결과 독타입을 밑에서 선언해줘서그런거같은데 어떤식으로 해야할지모르겠네요 ㅡㅜ
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.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");
$g4['title'] = "";
?>
이코드를상단에넣으면 기존 독타입은 밑으로 내려가는데
시험해본결과 독타입을 밑에서 선언해줘서그런거같은데 어떤식으로 해야할지모르겠네요 ㅡㅜ
DreamT
15년 전
참애매한거같습니다... 원래 문서타입은 반드시 가장 첫번째 줄에 명시해줘야하는데
그누보드의 몇몇 include 만 예외더군요.
그... 아웃로그인과 최근게시물을 불러오기위해 선언해두는 include 문은 문서타입보다 위에 들어가야 에러메세지가 안뜨는데
저거는 문서타입보다 아래에 넣으셔야 할겁니다...
그누보드의 몇몇 include 만 예외더군요.
그... 아웃로그인과 최근게시물을 불러오기위해 선언해두는 include 문은 문서타입보다 위에 들어가야 에러메세지가 안뜨는데
저거는 문서타입보다 아래에 넣으셔야 할겁니다...
15년 전
안녕하세요~
맞습니다. 첫번째줄에 선언하면 아무이상없는데 php코드를넣으니 정렬이뒤틀리니
참 애매하네요 .흑
맞습니다. 첫번째줄에 선언하면 아무이상없는데 php코드를넣으니 정렬이뒤틀리니
참 애매하네요 .흑
15년 전
//include_once("$g4[path]/head.sub.php");
이 걸 주석처리하시고 사용해보세요.
빼도 상관 없습니다.
이 걸 주석처리하시고 사용해보세요.
빼도 상관 없습니다.
15년 전
오 ~ 라엘님 한번에 해결됏습니다~!! 감사합니다~~~!!
13년 전
감사합니다.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
----------------
이것을 head.sub.php의< title> 부분위에 넣어줘도 중앙정렬이 해결되는군요.ㅋ
덕분에 해결했네요. ㄳ ㄳ ㄳ 또 ㄳ
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
----------------
이것을 head.sub.php의< title> 부분위에 넣어줘도 중앙정렬이 해결되는군요.ㅋ
덕분에 해결했네요. ㄳ ㄳ ㄳ 또 ㄳ
게시판 목록
그누4 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66414 |
|
11년 전 | 3681 | |
| 66413 | 11년 전 | 3395 | ||
| 66412 |
kimch
|
11년 전 | 3131 | |
| 66411 |
포도주스와
|
11년 전 | 4398 | |
| 66410 | 11년 전 | 2611 | ||
| 66409 |
알지오공유
|
11년 전 | 5085 | |
| 66408 | 11년 전 | 4321 | ||
| 66407 |
알지오공유
|
11년 전 | 2907 | |
| 66406 |
Header
|
11년 전 | 2512 | |
| 66405 |
fancytank
|
11년 전 | 2261 | |
| 66404 | 11년 전 | 2450 | ||
| 66403 |
|
11년 전 | 3079 | |
| 66402 | 11년 전 | 4295 | ||
| 66401 | 11년 전 | 3308 | ||
| 66400 |
kimch
|
11년 전 | 2900 | |
| 66399 | 11년 전 | 2137 | ||
| 66398 |
열라뽕똬이
|
11년 전 | 2345 | |
| 66397 | 11년 전 | 3898 | ||
| 66396 |
안드로메달
|
11년 전 | 2404 | |
| 66395 |
그누초보님
|
11년 전 | 3473 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기