1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | $( ".mygallery" ).chromagallery({ items: [{ alt: 'pic 1' , largesrc: 'images/1.jpg' }, { alt: 'pic 2' , largesrc: 'images/2.jpg' }, { alt: 'pic 3' , largesrc: 'images/3.jpg' }, { alt: 'pic 4' , largesrc: 'images/4.jpg' }] }); |
请问这种方式怎么调用,没什么反应在浏览器中
加载的时候设置进去
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | $( ".mygallery" ).chromaGallery({ color: '#000' , gridMargin: 15, maxColumns: 5 dof: true , screenOpacity: 0.8, items: [{ src: 'images/1.jpg' , alt: 'pic 1' , largesrc: 'images/1.jpg' }, { src: 'images/2.jpg' , alt: 'pic 2' , largesrc: 'images/2.jpg' }] }); |