html? 그누보드 구조에 대해 궁금한게 있어서 물어봅니다.!
그누질문에다가 해봤다가 퇴짜맞을까봐 혹시나해서 여기에..
최상위루트에 head.php index.php tali.php . 폴더 등등이 있잖아요..?
근데 그 포함된 폴더(스킨) 도 </html> 까지 감싸주는데..
꼭 최상위루트에 있는 파일만 <head>에서 불러 올수 있는걸까요?
skin 에 있는 css 들은 스킨 설정파일에서 불러와야 하던데,.
그렇다고 <html><head> 넣어주면 중복사용되고 표준통과도안되고 ..
이미 head.sub.php 과 tali.sub.php 에서 사용되고 있자나요.
html가 폴더속까지 제어못하는걸까요??
html 에 대한 폴더구조? 에 대해 알고싶습니다 ..
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 22개
다불러와진다면 dtd 버전에서 따로불러오는
//회원서비스 스킨 CSS 로드if(!is_null($member_skin_path) && file_exists($member_skin_path . '/style.css')) echo '<link rel="stylesheet" type="text/css" href="'.$member_skin_path.'/style.css" charset="UTF-8" media="all" />'."\n";
요런걸 넣지 않았겠죠..
제가말하는건 head.sub 안에서 스킨 스타일시트를 모두 불러오지못하냐 인거죠.
"It is recommended that websites use absolute links rather than relative links. Absolute links prevent the possibility for a spider associating a link incorrectly."
SEO 때문에, 가능한 경우 절대경로를 써라, 상대경로를 쓰지 말아라 라고 합니다.
저도 상대경로를 쓰는게 손에 익어서.... 조금 번거스럽긴 한데....
빌더같은 배포용이 아닌이상, 절대경로를 쓰는게 요즘 원칙이더라구요.
It is a good idea to use absolute paths, without the domain name, on most websites. This format insures that the link or image will be usable no matter where you place the page. This may seem like a silly reason to use longer links, but if you share code across multiple pages and directories on your site, using absolute paths will speed up your maintenance.
사이트 보수유지의 편의성을 위해서라도 절대경로를 써라.
////////////////////////////////
저도 그렇게 생각합니다!!!! 무지 귀찮아요!!!! ㅋㅋㅋㅋ
조건이 맞다면 불러올것이며, 조건이 틀리면 안불러와지겠죠. ^^
이렇게 하면 되는것 아닌가요^^
<link rel="stylesheet" type="text/css" href="skin/latest/basic/ style.css" charset="UTF-8" media="all" />
요런식으로하면 불러오지 못할것같은데..
echo 는 출력함수입니다.,.^^
순수 html/css 아니자나요 ㅎㅎㅎ
설명하고자하는것이 잘못전달되는듯 ㅜㅜ
제 질문의 요지는 php 구문을 사용하지않고 순수하게 link rel="stylesheet" type="text/css" href="skin/latest/basic/ style.css" charset="UTF-8" media="all" />
요런식으로 해도 안불러와지는것이냐었었는데..
제가
질문하는방법을 모르나봅니다 ㅜㅜ ..
흑흑 ..
이문제가지고 한번 토론 가튼걸 .. 해봐요 ㅋ
제가 잘 몰라도 이해해주세염..
inaraclub@nate.com 입니다. 지금 접속할께염.