web2020. 7. 27. 16:10

[html]html안에 html넣는 방법

 

header처럼 공통으로 뺄라면..

 

header.html만들고...

 

<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>

<script type="text/javascript">   

$(document).ready( function() {

$("#header").load("common/header.html");  

$("#leftside").load("common/leftside.html");  

});

</script>

 

------------------------------------------

 

<body>

<div id="header"></div> 

</body>

Posted by thdeodls85