实现方法:在\Hexo\themes\butterfly(hexo主题名)\source\js目录下新建一个snow.js文件,粘贴以下代码:123456789101112131415161718192021222324252627282930313233343536373839404142/*样式一*/(function($){$.fn.snow=function(options){var$flake = $('').css({'position':'absolute','z-index':'9999','top':'-50px'}).html('❄'),documentHeight = $(document).height(),documentWidth= $(document).width(),defaults = {minSize:10,maxSize:20,newOn:1000,flakeColor:"#AFDAEF"/* 此处可以定义雪花颜色,若要白色可以改为#FFFFFF */},options= $.extend({}
...
继续阅读
(53)