웹프로그래밍

Global It Leader!!


jQuery


 
 

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

페이지 정보

작성자 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 2,786회 작성일 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 목록
번호 제목 글쓴이 조회 날짜
122 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1943 03-26
121 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2186 06-25
120 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2642 09-11
119 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2690 11-06
118 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2702 10-28
117 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2760 08-18
116 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2772 01-30
열람중 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2787 10-06
114 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2804 03-26
113 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2840 01-20
112 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2920 03-02
111 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2964 02-04
110 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3029 02-04
109 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3078 09-23
108 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3113 03-06
107 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3213 09-05
106 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3221 04-23
105 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3257 12-27
104 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3284 02-23
103 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3289 11-03