테스트 사이트 - 개발 중인 베타 버전입니다

Div 를 프레임으로 잡기 tested by w3schools.com

· 1년 전 · 983

링크 많을때의 경우를 위해 수정 댓글 달면 좋겠네요

 

<!DOCTYPE html>

<html>

<head>

<style>

body{margin:0px;width:100%;height:100%;}.left{width:10%;height:100%;display:inline;float:left;}.right {width:90%;height:100%;display:inline;float:left;}

</style>

</head>

<body><div class=left>

<h1>The Element Object</h1>

<h2>The innerHTML Property</h2>

 

<p onclick="myFunction()">Click me to change my HTML content (innerHTML).</p></div><div class=right id="demo">+</div>

<script>

function myFunction() {

  document.getElementById("demo").innerHTML = "I have changed!";

}

</script>

 

</body>

</html> 

 

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
3381
3380
3379
3378
3377
3376
3375
3374
3373
3372
3371
3370
3369
3368
3367
3366
3365
3364
3363
3362
3361
3360
3359
3358
3357
3356
3355
3354
3351
3350