저번에 질문답변에 달았던 내용입니다.
조금 수정해서 팁으로 올려봅니다.
<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>
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5377 |
잘살아보자
|
11년 전 | 886 | |
| 5376 | 11년 전 | 1908 | ||
| 5375 | 11년 전 | 1116 | ||
| 5374 | 11년 전 | 1522 | ||
| 5373 |
SOFTA
|
11년 전 | 5710 | |
| 5372 | 11년 전 | 2249 | ||
| 5371 | 11년 전 | 15261 | ||
| 5370 | 11년 전 | 1398 | ||
| 5369 | 11년 전 | 3128 | ||
| 5368 | 11년 전 | 1563 | ||
| 5367 |
네이비컬러
|
11년 전 | 3599 | |
| 5366 |
네이비컬러
|
11년 전 | 1312 | |
| 5365 | 11년 전 | 5008 | ||
| 5364 | 11년 전 | 4392 | ||
| 5363 | 11년 전 | 4413 | ||
| 5362 | 11년 전 | 1181 | ||
| 5361 | 11년 전 | 2649 | ||
| 5360 |
봉보로봉봉
|
11년 전 | 902 | |
| 5359 |
입문개발자
|
11년 전 | 3231 | |
| 5358 | 11년 전 | 3114 | ||
| 5357 | 11년 전 | 2056 | ||
| 5356 | 11년 전 | 2497 | ||
| 5355 | 11년 전 | 2253 | ||
| 5354 | 11년 전 | 1346 | ||
| 5353 | 11년 전 | 3594 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기