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

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

· 1년 전 · 980

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

 

<!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> 

 

댓글 작성

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

로그인하기

게시글 목록

번호 제목
3293
3292
3291
3290
3289
3288
3286
3285
3284
3282
3281
3280
3279
3278
3277
3276
3275
3274
3273
3272
3271
3270
3269
3268
3267
3266
3265
3263
3262
3261