引入 CSS 和 JS 文件:
1 2 3 4 5 6 | <!-- 引入jQuery --> <!-- 引入picbox.js --> < script type = "text/javascript" src = "js/picbox.js" ></ script > <!-- 引入picbox.css --> < link rel = "stylesheet" href = "css/picbox.css" type = "text/css" media = "screen" >< br > |
组图用法:
1 2 3 4 | < p > < a href = "example.jpg" rel = "lightbox-group" title = "图片信息1" >打开大图</ a > to view a picture inside Picbox. < a href = "example2.jpg" rel = "lightbox-group" title = "图片信息2" >Click here</ a > to view a picture inside Picbox. </ p > |
1 2 3 4 5 | < a href = "example.jpg" rel = "lightbox" title = "Double click for full size" >Click here</ a > < a href = "example2.jpg" rel = "lightbox" title = "Double click for full size" > < img style = "width:100px;" src = "example2.jpg" > </ a > |
=========感谢网友 嗜啡者 的提供==============
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com