Я пытаюсь изменить высоту и ширину поля изображения, которое открывается, когда я нажимаю на миниатюру, но не имело успеха.
Это мой код до сих пор
@for (int i = 0; i < Model.count; i++)
{
<a href= "@Url.Action("GetImage", "Image", new { id = i })" rel="prettyPhoto[pp_gal]">
<img src= "@Url.Action("GetImage", "Image", new { id = i })" alt="Image @(i+1)" width="240" height="240" /></a>
}
<script type="text/javascript">
$(document).ready(function () {
$("a[rel^='prettyPhoto']").prettyPhoto({
autoplay_slideshow: false,
show_title: true,
default_width: 300, //I have tried playing with these values
default_height: 200, //I have tried playing with these values
theme: 'pp_default',
overlay_gallery: false,
social_tools: false
});
});
</script>
Любая помощь будет оценена.