ssouf
jquery 로 썸네일 이미지 만들기 본문
그동안 PHP,ASP.NET,JSP 별로 썸네일 코드를 만들었다. 느리기도 하지만 버전들이 다르면 안되는 경우가 많다
http://www.garralab.com/nailthumb.php
를 참고하여 짧고 간단하게 최신 버전 js 파일만 불러온다
<script type="text/javascript">
jQuery(document).ready(function() {
$('.nailthumb-container').nailthumb({
width:90,
height:90
});
});
</script>
만 넣어서 했더니 된다
하지만 호환성 테스트 해보니 안된다
<style type='text/css'>
.nailthumb-container {
width: auto;
height: auto;
margin: 0 0 11px;
padding: 0px;
overflow: hidden;
position: relative;
text-align: left;
}
.nailthumb-container img.nailthumb-image {
margin: 0px;
padding: 0px;
max-width: none;
text-align: left;
float: left;
}
.nailthumb-container span.nailthumb-title {
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5);
bottom: 0;
color: White;
display: block;
font-size: 9px;
height: 20px;
left: 0;
margin-top: 2px;
line-height: 20px;
position: relative;
text-align: center;
width: 100%;
overflow: hidden;
float: left;
}
.nailthumb-container span.nailthumb-title .nailthumb-title-scroller {
padding-left: 2px;
}
.nailthumb-container img {
max-width: none;
text-align: left;
}
</style>
를 넣었다 모든 브라우저 다 된다
완성이다 CSS 코드를 줄이고 싶지만 귀찮다 그냥 넣자
'Web DEV > jQuery' 카테고리의 다른 글
테이블 행 드래그앤 드랍 정렬 저장 (0) | 2021.02.22 |
---|---|
추천 jquery Plugin Tree 부분 (0) | 2021.02.22 |
jquery 쓸만한 플러그인 (0) | 2012.06.18 |
value값가져오기 (0) | 2010.01.18 |