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

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

· 1년 전 · 971

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

 

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

 

댓글 작성

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

로그인하기

게시글 목록

번호 제목
3810
3809
3808
3806
3805
3804
3799
3798
3796
3795
3794
3790
3784
3779
3776
3775
3774
3767
3765
3761
3752
3748
3734
3730
3723
3719
3706
3686
3656
3655