채택완료

특정 페이지에 헤더 푸터 적용시 메뉴가 흐트러 집니다.

2020-12-22 (화) 17:57:50 1,961

http://yesok.biz/nara/index.php

어떤 부분에 이상이 있는지 알 수 있을까요?

정상

2009566843_1608627143.2898.png

비정상

2009566843_1608627110.0764.png

해당 페이지 상단 소스는 이런식으로 되어 있습니다.

Copy
<?php
include_once('./_common.php');
define('_INDEX_', true);
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once('./_head.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>나라장터 검색</title>
<link rel="stylesheet" href="./inc/bootstrap.css" />
<link rel="stylesheet" href="./inc/pagination.css" />
<link rel='stylesheet' href='./inc/style.css'>
<script>
var agent = navigator.userAgent.toLowerCase();
if ( (navigator.appName == 'Netscape' && agent.indexOf('trident') != -1) || (agent.indexOf("msie") != -1)) {
    location.href = "no-ie.html";
} else {
    // ie가 아닐 경우
}
</script>
</head>
|

답변 2개 / 댓글 3개

채택된 답변
+20 포인트
2020-12-22 (화) 19:13:59

<link rel="stylesheet" href="./inc/bootstrap.css" /> 삭제를 해보면 어떨까 싶습니다.

답변에 대한 댓글 1개

2020-12-22 (화) 20:08:35
네.
그렇 잖아도 주석처리 했더니 바로 잡히더군요.
답변 감사합니다.
2020-12-22 (화) 18:54:47

이 페이지에서만 콘솔에 보면 오류가 있는데 그것 때문은 아닐까요?

Uncaught TypeError: Cannot read property 'msie' of undefined
    at handleIEFixes (app.js?ver=191202:22)
    at Object.init (app.js?ver=191202:177)
    at HTMLDocument.<anonymous> (index.php:975)
    at mightThrow (jquery-3.4.1.js:3557)
    at process (jquery-3.4.1.js:3625)

index.php:428 Uncaught TypeError: jsonResponse.body.forEach is not a function
    at XMLHttpRequest.onprogress (index.php:428)

답변에 대한 댓글 2개

2020-12-22 (화) 18:58:47
감사합니다.
저 부분이 js 나 jquery 의 버전 차이나 충돌 때문일까요?
그건 저도 잘 모르겠네요

일단 sidebar-left에 다른건 left: -1140px; 스타일이 주어지는데

문제페이지는 주어지지 않네요

php 안이나 스크립트 오류를 한 번 찾아보세요 css는 특별히 다를건 없는거 같은데

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