I am using a lightbox jquery plugin:
http://www.shadowbox-js.com/usage.html
The html looks like this:
<a href="@item.Imageurl" rel="shadowbox"> <img src="@item.Imageurl" alt ="@(item.Title)"/></a>
Basicly the image is 100px/100px, But I would like to make it 180px/180px when the image opens up in the lightbox modal when the thumbnail gets clicked, the thumbnail should still be 100px/100px How can I do that?
href应该指向完整尺寸的图片,img指向缩略图
You want to add width and height properties to the shadowbox element. From the documentation it looks like you'll add those properties in the following manner. $(document).ready(function () { Shadowbox.setup("a", { width: 180px, height: 180px }); });
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.