저번에 질문답변에 달았던 내용입니다.
조금 수정해서 팁으로 올려봅니다.
<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>
게시글 목록
| 번호 | 제목 |
|---|---|
| 11623 |
웹서버
FTP 프로세스 죽이기
1
|
| 20284 | |
| 291 | |
| 11622 | |
| 20283 |
CSS
CSS slider 테스트1
|
| 20282 |
CSS
수평메뉴1
|
| 11620 |
node.js
Node.js 서버의 기본적인 내용 정리
1
|
| 20281 |
기타
dpi 환산표(?)
|
| 11619 | |
| 20280 | |
| 11612 |
PHP
숫자를 한글로 변환
2
|
| 11611 | |
| 11608 |
PHP
썸네일 클래스입니다
2
|
| 11605 | |
| 11602 |
MySQL
자주쓰는 MYSQL
2
|
| 11601 | |
| 11600 |
PHP
두지점의 위도,경도간 거리계산
|
| 11599 | |
| 11597 |
MySQL
무한 로딩 중인 쿼리 죽이기
1
|
| 11596 |
기타
파폭 ssh, ftp
|
| 11595 |
MySQL
mysql 기본 사용법
|
| 11594 | |
| 11593 | |
| 11592 |
jQuery
제이쿼리를 이용하여 노드 선택
|
| 11591 |
jQuery
append를 이용하여 엘리먼트 추가하기
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기