これは私のメインページです
<html>
<head>
<title></title>
<style>
#exp{
height: 100%;
width:100%;
position: absolute;
left:0;
top:0;
background:#00FF00;
}
</style>
<script src="scripts/jquery.js"></script>
<script>
$(function(){
$("#exp").load('aboutus.html');
})
</script>
</head>
<body>
<div id="exp">
</div>
</body>
</html>
aboutus.html ページからこのコンテンツをロードしたい そのページのコンテンツは
<div style="height:100%;width:100%;position:absolute;left:0px;top:0px">Hai</div>
load、get、.html などを試しましたが、どれも機能していません。php を含めたくない
試した方法
$("#exp").load('aboutus.html');
$("#exp").get('aboutus.html');
$("#exp").html(url(aboutus.html'));