코딩 삽질
[html] include 절대경로, 상대경로
deonggi
2019. 11. 24. 13:40
728x90
반응형
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <!-- ASP 코드의 include --> <!-- 상대경로 --> <!--#include file="/second.html"--> <!-- 절대경로--> <!--#include virtual="/main/second.html"--> <!-- PHP 코드의 include --> <? include_once $_SERVER["DOCUMENT_ROOT"].'/main/second.html'; ?> <!-- javascript 코드의 include --> <script> // 상대주소 document.location.href="second.html"; // 절대주소 document.location.href="../main/second.html"; </script> <!-- HTML 코드의 include --> <!-- 절대주소 --> <link rel="stylesheet" href="../main/second.html"> | cs |
728x90
반응형