웹프로그래밍

Global It Leader!!


jQuery


 
 

li 높이 가장 높은것에 맞추기

페이지 정보

작성자 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 2,727회 작성일 20-10-06 16:41

본문

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
   var max_h=0;
   $("#aaa li").each(function(){
 var h = parseInt($(this).css("height"));
    if(max_h<h){ max_h = h; }
   });
   $("#aaa li").each(function(){
 $(this).css({height:max_h});
   });
  });
</script>

<ul id="aaa">
 <li style="float:left; height:300px; background:#d50000;">개나리</li>
 <li style="float:left; height:500px;  background:#666666;">진달래</li>
 <li style="float:left; background:#999999;">무궁화</li>
< /ul>
 

댓글목록

등록된 댓글이 없습니다.

전체 142
게시물 검색
jQuery 목록
번호 제목 글쓴이 조회 날짜
42 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3260 04-04
41 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3249 01-12
40 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3230 02-23
39 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3210 11-03
38 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3208 12-27
37 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3177 04-23
36 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3156 09-05
35 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3034 03-06
34 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3008 09-23
33 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2984 02-04
32 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2914 02-04
31 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2845 03-02
30 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2790 01-20
열람중 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2728 10-06
28 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2721 01-30
27 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2706 08-18
26 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2666 03-26
25 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2632 11-06
24 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2594 10-28
23 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2579 09-11