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

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

· 1년 전 · 981

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

 

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

 

댓글 작성

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

로그인하기

게시글 목록

번호 제목
3229
3228
3227
3226
3225
3224
3223
3222
3221
3220
3219
3218
3217
3216
3215
3214
3213
3212
3211
3210
3209
3208
3207
3206
3205
3204
3203
3202
3201
3200