저번에 질문답변에 달았던 내용입니다.
조금 수정해서 팁으로 올려봅니다.
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// var h_val = $("#contentarea").height();
// $("#left").height(h_val);
var l_height = $("#left").height();
var r_height = $("#content").height();
if(l_height < r_height) {
$("#left").height(r_height);
} else {
$("#content").height(l_height);
}
});
</script>
<div id="contentarea" style="width:990px; margin:0 auto; overflow:hidden; border:1px solid #ddd;">
<div id="left" style="float:left; width:200px; border:1px solid #ccc;">
left<br><br>
</div>
<div id="content" style="float:right; width:500px; border:1px solid #ccc;">
right<br><br><br><br><br><br><br><br>adadf<br>
</div>
</div>
조금 수정해서 팁으로 올려봅니다.
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// var h_val = $("#contentarea").height();
// $("#left").height(h_val);
var l_height = $("#left").height();
var r_height = $("#content").height();
if(l_height < r_height) {
$("#left").height(r_height);
} else {
$("#content").height(l_height);
}
});
</script>
<div id="contentarea" style="width:990px; margin:0 auto; overflow:hidden; border:1px solid #ddd;">
<div id="left" style="float:left; width:200px; border:1px solid #ccc;">
left<br><br>
</div>
<div id="content" style="float:right; width:500px; border:1px solid #ccc;">
right<br><br><br><br><br><br><br><br>adadf<br>
</div>
</div>
게시글 목록
| 번호 | 제목 |
|---|---|
| 11561 | |
| 11560 |
PHP
GPS정보 모바일에서 사용하기
|
| 11559 | |
| 11558 |
JavaScript
메뉴 네비 레이어 서서히 없어지는거
|
| 17729 | |
| 11556 | |
| 20266 | |
| 20263 | |
| 11554 |
JavaScript
제니퍼소프트, UI 소스 오픈 하여군요
1
|
| 11551 |
jQuery
좋은... swipe 스크롤
2
|
| 11550 | |
| 11549 | |
| 11548 |
jQuery
swipe 좌우스크롤
|
| 20259 | |
| 11547 |
MySQL
MYSQL 오늘 날짜 뽑아오기
|
| 11546 | |
| 11544 | |
| 11542 |
JavaScript
audio 음악이 끝났을때 이벤트를 넣을 수 있나요?
1
|
| 287 | |
| 11541 |
JavaScript
캔버스 ( html5 ) 그림 그리기3
|
| 11539 | |
| 11538 |
JavaScript
캔버스 ( html5 ) 그림 그리기2
|
| 11537 |
JavaScript
캔버스 ( html5 ) 그림 그리기
|
| 11536 |
jQuery
파일 첨부시심플하게 버튼으로만 되게..
|
| 20682 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기