Но небольшная проблемка. Т.к это все находиться в таблице, при увеличении картинки, таблица растягивается вместе с ней. Можно ли как-то сделать чтобы картинка не растягивала таблицу при увеличении, а была как-то поверх всего?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
Tchorteg
Делаю чтоб картинка увеличивалась при наведении. Делаю так:
<style type="text/css">
body{padding:10px 100px;}
.zoom{
position:relative;
cursor:pointer;
left:0;
top:0;
}
</style>
<? if (!empty($picture)) {?>
<script type="text/javascript">
$(function(){
$('.zoom').hover(function(){
$(this).stop().animate({width:"250px",left:"-25px",top:"-25px"}, 400);
$(this).attr("src","<?=$picture?>");
},
function(){
$(this).stop().animate({width:"100px",left:"0",top:"0"}, 400);
$(this).attr("src","<?=$picture?>");
});
});
</script>
<a href="#"><img border="0" width="100px" class="zoom" src="<?=$picture?>" alt="" title="" /></a>
<?}?>
Но небольшная проблемка. Т.к это все находиться в таблице, при увеличении картинки, таблица растягивается вместе с ней. Можно ли как-то сделать чтобы картинка не растягивала таблицу при увеличении, а была как-то поверх всего?
Edited by TchortegLink to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.