给博客添加简单的相册功能

最近打算给博客加个相册,方便我下次需要用图片的时候容易找,本来打算直接上插件,不过试了好几个发现没显示,除了NextGENGallery,不知道是我的操作有问题还是插件的问题,试用NextGENGallery觉得这插件还有些bug,所以我还是决定用wp默认的相册然后在改把,弄出来之后发现很好,而且点击图片是弹层显示原图片分辨率而不是缩略图,代码还简单,还能直接改,方便!。

<img class="ngg-singlepic ngg-none" src="https://jwmm.xyz/wp-content/gallery/e4ba8ce6aca1e58583/timg-1.jpg" alt="timg-1" />
<img class="ngg-singlepic ngg-none" src="https://jwmm.xyz/wp-content/gallery/e4ba8ce6aca1e58583/u4038772995691553483fm26gp0.jpg" alt="u4038772995691553483fm26gp0" />
<img class="ngg-singlepic ngg-none" src="https://jwmm.xyz/wp-content/gallery/e4ba8ce6aca1e58583/u39044135592347248259fm26gp0.jpg" alt="u39044135592347248259fm26gp0" width="100%" />
<img class="ngg-singlepic ngg-none" src="https://jwmm.xyz/wp-content/gallery/e4ba8ce6aca1e58583/5d2853e0e4d36.jpg" alt="5d2853e0e4d36" />
<img class="ngg-singlepic ngg-none" src="https://jwmm.xyz/wp-content/gallery/e4ba8ce6aca1e58583/73907884_p0_master1200.jpg" alt="5d2853e0e4d36" />
<img class="ngg-singlepic ngg-none" src="https://jwmm.xyz/wp-content/gallery/e4ba8ce6aca1e58583/74526422_p0_master1200.jpg" alt="5d2853e0e4d36" />
<img class="ngg-singlepic ngg-none" src="https://jwmm.xyz/wp-content/gallery/e4ba8ce6aca1e58583/74760032_p0_master1200.jpg" alt="5d2853e0e4d36" />
<img class="ngg-singlepic ngg-none" src="https://jwmm.xyz/wp-content/gallery/e4ba8ce6aca1e58583/1_timg-1.jpg" alt="5d2853e0e4d36" />
<img class="ngg-singlepic ngg-none" src="https://jwmm.xyz/wp-content/gallery/e4ba8ce6aca1e58583/timg.jpg" alt="5d2853e0e4d36" />

 

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注