logo扫光效果 -------- [scode type="share"]自定义css[/scode] ``` /* logo扫光 */ .navbar-brand { position: relative; overflow: hidden; margin: 0; } .navbar-brand:before { content: ""; position: absolute; left: -665px; top: -460px; width: 200px; height: 15px; background: linear-gradient(45deg, #b8b8b8, #f5f5f5, #d0d0d0); background-size: 400% 400%; border-radius: 50%; box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3); transform: rotate(-45deg); animation: searchLights 6s ease-in-out infinite, metalShine 3s linear infinite; } /* 使光束动画更流畅,并带有金属反射效果 */ @keyframes searchLights { 0% { left: -665px; top: -460px; } 50% { left: -100px; top: 0; } 65% { left: 120px; top: 100px; } 80% { left: -100px; top: 0; } 100% { left: -665px; top: -460px; } } /* 金属光泽闪动效果 */ @keyframes metalShine { 0% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } 100% { background-position: 0% 0%; } } ``` 自定义滚动条 ------ [scode type="share"]自定义css[/scode] ``` /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/ ::-webkit-scrollbar { width: 8px; height: 6px } /*定义滚动条轨道*/ ::-webkit-scrollbar-track { background-color: transparent; -webkit-border-radius: 2em; -moz-border-radius: 2em; border-radius: 2em } /*定义滑块 内阴影+圆角*/ ::-webkit-scrollbar-thumb { background-color: #30B07F; background-image: -webkit-linear-gradient(45deg,rgba(255,255,255,.4) 100%,transparent 100%,transparent 50%,rgba(255,255,255,.4) 50%,rgba(255,255,255,.4) 75%,transparent 75%,transparent); -webkit-border-radius: 2em; -moz-border-radius: 2em; border-radius: 2em } ``` 点赞按钮跳动 ------ [scode type="share"]自定义css[/scode] /*赞赏按钮跳动开始*/ .btn-pay { animation: star 0.5s ease-in-out infinite alternate; } @keyframes star { from { transform: scale(1); } to { transform: scale(1.1); } } /*赞赏按钮跳动结束*/ 两侧留白间距 ------ [scode type="share"]自定义css[/scode] /*两侧框架留白间距*/ @media (min-width:1700px) { .app.container { width: 95% } .app.container .app-aside, .app.container .app-header { max-width: 95% } } @media (min-width:2048px) { .app.container { width: 93% } .app.container .app-aside, .app.container .app-header { max-width: 93% } } @media (min-width:1200px) { .app.container { width: 90% } .app.container .app-aside, .app.container .app-header { max-width: 100% } .app.container .app-footer-fixed { max-width: 970px } .app.container.app-aside-folded .app-footer-fixed { max-width: 1110px } .app.container.app-aside-dock .app-footer-fixed { max-width: 90% } } /*两侧框架留白间距结束*/ 文章一二三四级目录美化 [scode type="share"]自定义css[/scode] /*文章一二三四级标题美化 开始*/ #post-content h1 {font-size: 30px} #post-content h2 {position: relative;margin: 36px 0 20px!important;font-size: 1.55em;display: inline-block;} #post-content h3 {font-size: 20px} #post-content h4 {font-size: 15px} #post-content h2::after {transition:all .35s;content:"";position:absolute;background:linear-gradient(#3c67bd8c 30%,#3c67bd 70%);width:1em;left:0;box-shadow:0 3px 3px rgba(32,160,255,.4);height:3px;bottom:-8px;} #post-content h2::before {content:"";width:100%;border-bottom:1px solid #eee;bottom:-7px;position:absolute} #post-content h2:hover::after {width: 2.5em;} #post-content h1,#post-content h2,#post-content h3,#post-content h4,#post-content h5,#post-content h6 {color:#666;line-height:1.4;font-weight:700;margin:30px 0 10px 0} /*文章一二三四级标题美化 结束*/ 复制弹窗 ---- [scode type="share"]自定义JS[/scode] //复制弹框 $("body").bind('copy', function(e) { copytips() }) //禁用F12 document.onkeydown = function(){ if(window.event && window.event.keyCode == 123) { event.keyCode=0; event.returnValue=false; } } function copytips() { var sitesurl=window.location.href; $.message({ message: "尊重原创,转载请注明出处! 本文作者:富强原文链接:" + sitesurl, title: "复制成功", type: "warning", autoHide: !1, time: "3500" }) } 点击特效(富强民主...) ------------- [scode type="share"]自定义JS[/scode] var a_idx = 0; jQuery(document).ready(function($) { $("body").click(function(e) { var a = new Array("富强", "民主", "文明", "和谐", "自由", "平等", "公正", "法治", "爱国", "敬业", "诚信", "友善"); var $i = $("").text(a[a_idx]); a_idx = (a_idx + 1) % a.length; var x = e.pageX, y = e.pageY; $i.css({ "z-index": 100000000, "top": y - 20, "left": x, "position": "absolute", "font-weight": "bold", "color": "#ff6651" }); $("body").append($i); $i.animate({ "top": y - 180, "opacity": 0 }, 1500, function() { $i.remove(); }); }); }); 自定义右键 ----- [scode type="share"]尾部body HTML[/scode] 首页 复制 搜索 前进 后退 重载网页 关于本站