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

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

· 1년 전 · 977

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

 

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

 

댓글 작성

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

로그인하기

게시글 목록

번호 제목
3643
3631
3627
3621
3619
3617
3610
3609
3608
3607
3606
3603
3602
3601
3600
3595
3591
3587
3578
3567
3561
3560
3559
3557
3555
3554
3552
3551
3550
3537